From: Andrzej Pietrasiewicz Date: Fri, 13 Mar 2015 10:08:08 +0000 (+0100) Subject: usb: gadget: f_printer: use non-zero flag for bitwise and X-Git-Tag: omap-for-v4.1/fixes-rc1~167^2~55^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbdecad99c3f37346ed868fec0c3a9c2809f78e9;p=pandora-kernel.git usb: gadget: f_printer: use non-zero flag for bitwise and USB_DIR_OUT happens to be zero, so the result of bitwise and is always 0. Consequently, break will never happen in the SOFT_RESET case. This patch uses a compatible condition with a non-zero USB_DIR_IN, which might or might not evaluate to zero. Reported-by: Dan Carpenter Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed