From: H Hartley Sweeten Date: Tue, 30 Jul 2013 00:46:46 +0000 (-0700) Subject: staging: comedi: usbduxsigma: 'dac_commands' does not need to be kzalloc()'d X-Git-Tag: v3.12-rc1~183^2~398 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=315a276da9952f481edc2396deab455173dbaea8;p=pandora-kernel.git staging: comedi: usbduxsigma: 'dac_commands' does not need to be kzalloc()'d The 'dac_commands' buffer is used to pass the ao channel list from usbduxsigma_ao_cmd() to the urb callback, usbduxsigma_ao_urb_complete(). This buffer does not need to be allocated. Change it into a simple array of the correct size. Rename the variable to 'ao_chanlist' to clarify what it actually is. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed