aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/tcm_usb_gadget.c
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2013-07-03 11:22:17 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-07-07 21:36:53 -0400
commitb79fafac70fc9bbe640b8193ed772eb850efdfe6 (patch)
treeb99c39999610a4371563ec179d3b2e10a04c2df0 /drivers/usb/gadget/tcm_usb_gadget.c
parent11fee8a751670cf6d60b1912e2e9cb1c7e392842 (diff)
target: make queue_tm_rsp() return void
The return value wasn't checked by any of the callers. Assuming this is correct behaviour, we can simplify some code by not bothering to generate it. nab: Add srpt_queue_data_in() + srpt_queue_tm_rsp() nops around srpt_queue_response() void return Signed-off-by: Joern Engel <joern@logfs.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/usb/gadget/tcm_usb_gadget.c')
-rw-r--r--drivers/usb/gadget/tcm_usb_gadget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c
index 7cacd6ae818e..0ff33396eef3 100644
--- a/drivers/usb/gadget/tcm_usb_gadget.c
+++ b/drivers/usb/gadget/tcm_usb_gadget.c
@@ -1467,9 +1467,8 @@ static int usbg_get_cmd_state(struct se_cmd *se_cmd)
1467 return 0; 1467 return 0;
1468} 1468}
1469 1469
1470static int usbg_queue_tm_rsp(struct se_cmd *se_cmd) 1470static void usbg_queue_tm_rsp(struct se_cmd *se_cmd)
1471{ 1471{
1472 return 0;
1473} 1472}
1474 1473
1475static const char *usbg_check_wwn(const char *name) 1474static const char *usbg_check_wwn(const char *name)