From: H Hartley Sweeten Date: Fri, 5 Sep 2014 16:25:40 +0000 (-0700) Subject: staging: comedi: adl_pci9118: cleanup and simplify pci9118_reset() X-Git-Tag: fixes-for-v3.18-merge-window~15^2~662 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5358e8996f76ba5f44992226f7eb15d502c663fa;p=pandora-kernel.git staging: comedi: adl_pci9118: cleanup and simplify pci9118_reset() Change the return type to void, this function always succeeds and the callers never check the return value. According to the The User Manual for the PCI-9118, the hardware does not require any particular "reset" in order to function. Simplify the reset so it justs gets the board info a known state with interrupts disabled. There is no reason to initialize the private data members in this function. They all default to '0' due to the kzalloc() of the private data and the subdevice operations all initialize them as needed. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed