linux/drivers/usb/gadget/function
Andrzej Pietrasiewicz fbdecad99c 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 <dan.carpenter@oracle.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-03-13 10:41:05 -05:00
..
f_acm.c usb: gadget: function: acm: make f_acm pass USB20CV Chapter9 2014-10-20 15:58:48 -05:00
f_ecm.c
f_eem.c usb: gadget: function: Remove redundant usb_free_all_descriptors 2014-10-23 13:57:24 -05:00
f_fs.c usb: gadget: ffs: add eventfd notification about ffs events 2015-01-27 09:34:59 -06:00
f_hid.c usb: gadget: f_hid: remove unnecessary usb_ep_dequeue() 2015-03-11 10:19:38 -05:00
f_loopback.c usb: gadget: loopback: don't queue requests to bogus endpoints 2014-10-23 09:55:42 -05:00
f_mass_storage.c usb: gadget: f_mass_storage: use defined constant instead of numeric value 2015-03-11 10:19:35 -05:00
f_mass_storage.h
f_midi.c usb: gadget: fix misspelling of current function in string 2014-12-22 10:27:34 -06:00
f_ncm.c usb: gadget: function: Added usb_assign_descriptors failure check 2014-11-03 10:01:24 -06:00
f_obex.c usb: gadget: function: Remove redundant usb_free_all_descriptors 2014-10-23 13:57:24 -05:00
f_phonet.c usb: gadget: function: phonet: balance usb_ep_disable calls 2015-02-23 00:18:52 -06:00
f_printer.c usb: gadget: f_printer: use non-zero flag for bitwise and 2015-03-13 10:41:05 -05:00
f_rndis.c usb: gadget: function: delete an unnecessary check before rndis_add_hdr() 2014-11-21 09:08:12 -06:00
f_serial.c
f_sourcesink.c usb: gadget: function: f_sourcesink: fix sparse warning 2015-02-23 09:21:45 -06:00
f_subset.c usb: gadget: function: Remove redundant usb_free_all_descriptors 2014-10-23 13:57:24 -05:00
f_uac1.c Linux 3.19-rc5 2015-01-19 09:57:20 -06:00
f_uac2.c usb: gadget: function: f_uac2: fix sparse warnings 2015-02-23 09:21:28 -06:00
f_uvc.c usb: gadget: uvc: configfs support in uvc function 2015-01-12 12:13:26 -06:00
f_uvc.h usb: gadget: f_uvc: remove compatibility layer 2014-09-09 09:49:41 -05:00
g_zero.h usb: gadget: zero: Add support for interrupt EP 2014-08-27 14:13:18 -05:00
Makefile usb: gadget: f_printer: convert to new function interface with backward compatibility 2015-03-10 15:33:40 -05:00
ndis.h
rndis.c
rndis.h
storage_common.c
storage_common.h
u_ecm.h
u_eem.h
u_ether_configfs.h
u_ether.c usb: gadget: ethernet: re-use %pM specifier to print MAC 2015-01-19 12:53:32 -06:00
u_ether.h
u_fs.h usb: gadget: ffs: add eventfd notification about ffs events 2015-01-27 09:34:59 -06:00
u_gether.h
u_hid.h usb: gadget: hid: add configfs support 2014-11-06 16:18:19 -06:00
u_midi.h usb: gadget: f_midi: add configfs support 2014-11-05 13:37:17 -06:00
u_ncm.h
u_phonet.h
u_printer.h usb: gadget: printer: add configfs support 2015-03-10 15:33:41 -05:00
u_rndis.h
u_serial.c usb: gadget: serial: %pf is only for function pointers 2015-03-13 10:37:30 -05:00
u_serial.h
u_uac1.c usb: gadget: u_uac1: fix one code style problem 2015-01-15 09:41:48 -06:00
u_uac1.h usb: gadget: uac1: struct gaudio is useless for struct f_uac1_opts 2015-01-15 09:41:48 -06:00
u_uac2.h
u_uvc.h usb: gadget: uvc: configfs support in uvc function 2015-01-12 12:13:26 -06:00
uvc_configfs.c usb: gadget: uvc: comments for iterating over streaming hierarchy 2015-01-27 10:00:27 -06:00
uvc_configfs.h usb: gadget: uvc: configfs support in uvc function 2015-01-12 12:13:26 -06:00
uvc_queue.c usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc_queue.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc_v4l2.c usb: gadget: function: uvc_v4l2.c: fix sparse warnings 2015-02-23 09:23:46 -06:00
uvc_v4l2.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc_video.c usb: gadget: function: uvc: fix sparse warnings 2015-02-23 09:22:06 -06:00
uvc_video.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00
uvc.h usb: gadget: uvc: separately compile some components of f_uvc 2014-09-09 09:49:12 -05:00