From: Ming Lei Date: Sat, 19 Jan 2013 11:30:30 +0000 (+0800) Subject: USB: storage: avoid scanning other targets for single target device X-Git-Tag: v3.9-rc1~126^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4cc1834bdc47d0574ceffb728f256f67e1190ef;p=pandora-kernel.git USB: storage: avoid scanning other targets for single target device This patch sets scsi_host->max_id as 1 if the device's quirk flag of US_FL_SCM_MULT_TARG isn't set, because there are only 6 mass storage devices marked as mutiple targets from unusual_devs.h. This patch is a small optimization about scanning targets, and avoid scanning other 7 non-existed targets for single target device. Signed-off-by: Ming Lei Acked-by: Alan Stern Acked-by: Matthew Dharm Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed