aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/tcm_usb_gadget.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2012-07-08 15:58:48 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-07-16 20:35:21 -0400
commitf314643751450a582c1ca40a54558240ef7cd4bf (patch)
tree482343a17d77d36a872abff047bac5406728fae0 /drivers/usb/gadget/tcm_usb_gadget.c
parent7a6f0a1ea5f5ac9b67211071d558c5b09580695d (diff)
target: remove transport_generic_handle_cdb_map
Remove this command submission path which is not used by any in-tree driver. This also removes the now unused new_cmd_map fabtric method, which a few drivers implemented despite never calling transport_generic_handle_cdb_map. Signed-off-by: Christoph Hellwig <hch@lst.de> 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.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c
index 031d44e86ec3..02ace18fca0b 100644
--- a/drivers/usb/gadget/tcm_usb_gadget.c
+++ b/drivers/usb/gadget/tcm_usb_gadget.c
@@ -1400,19 +1400,6 @@ static u32 usbg_tpg_get_inst_index(struct se_portal_group *se_tpg)
1400 return 1; 1400 return 1;
1401} 1401}
1402 1402
1403static int usbg_new_cmd(struct se_cmd *se_cmd)
1404{
1405 struct usbg_cmd *cmd = container_of(se_cmd, struct usbg_cmd,
1406 se_cmd);
1407 int ret;
1408
1409 ret = target_setup_cmd_from_cdb(se_cmd, cmd->cmd_buf);
1410 if (ret)
1411 return ret;
1412
1413 return transport_generic_map_mem_to_cmd(se_cmd, NULL, 0, NULL, 0);
1414}
1415
1416static void usbg_cmd_release(struct kref *ref) 1403static void usbg_cmd_release(struct kref *ref)
1417{ 1404{
1418 struct usbg_cmd *cmd = container_of(ref, struct usbg_cmd, 1405 struct usbg_cmd *cmd = container_of(ref, struct usbg_cmd,
@@ -1902,7 +1889,6 @@ static struct target_core_fabric_ops usbg_ops = {
1902 .tpg_alloc_fabric_acl = usbg_alloc_fabric_acl, 1889 .tpg_alloc_fabric_acl = usbg_alloc_fabric_acl,
1903 .tpg_release_fabric_acl = usbg_release_fabric_acl, 1890 .tpg_release_fabric_acl = usbg_release_fabric_acl,
1904 .tpg_get_inst_index = usbg_tpg_get_inst_index, 1891 .tpg_get_inst_index = usbg_tpg_get_inst_index,
1905 .new_cmd_map = usbg_new_cmd,
1906 .release_cmd = usbg_release_cmd, 1892 .release_cmd = usbg_release_cmd,
1907 .shutdown_session = usbg_shutdown_session, 1893 .shutdown_session = usbg_shutdown_session,
1908 .close_session = usbg_close_session, 1894 .close_session = usbg_close_session,