From: H Hartley Sweeten Date: Tue, 14 May 2013 21:22:39 +0000 (-0700) Subject: staging: comedi: dt9812: tidy up usb_bulk_msg() calls X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~631 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ec77d3499b10c75b279080a79a79e35e51b70a6;p=pandora-kernel.git staging: comedi: dt9812: tidy up usb_bulk_msg() calls To clarify the code, add a local variable for the struct usb_device pointer used in the usb_blk_msg() calls. It's not necessary to initialize the 'count' when writing to the usb device. The 'count' variable is used to get back the number of bytes actually sent. Just return the usb_blk_msg() result when it is the last operation in a function. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed