]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
USB: ene_usb6250: remove subroutine duplication
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 16 May 2017 15:48:10 +0000 (11:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:05:24 +0000 (16:05 +0200)
commitf8efdabd14532c47e5420dc593c2a13028e42140
tree3e6c73521e9368162fa7bd5811e3ace342985903
parentce553bd103c161df2676ff201746bff8ca512715
USB: ene_usb6250: remove subroutine duplication

In the ene_usb6250 sub-driver for usb-storage, the sd_scsi_inquiry()
and ms_scsi_inquiry() subroutines (one meant for use with SD memory
cards and the other for use with MS memory cards) are exact
duplicates.  This patch removes the duplication by creating a single
do_scsi_inquiry() command and using it instead of the other two.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Tested-by: Andreas Hartmann <andihartmann@01019freenet.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/ene_ub6250.c