From: jack wang Date: Tue, 20 Oct 2009 08:10:45 +0000 (+0800) Subject: [SCSI] libsas: do not set res = 0 in sas_ex_discover_dev() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=198439e4afec431d2fa2cab9a4dcca87e5adc7a5;p=linux-beck.git [SCSI] libsas: do not set res = 0 in sas_ex_discover_dev() We should not set res to 0 in function sas_ex_discover_dev in order to let it discover it further when wide port hotplug in . Signed-off-by: Tom Peng Signed-off-by: Jack Wang Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index b3381959acce..33cf988c8c8a 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c @@ -960,7 +960,6 @@ static int sas_ex_discover_dev(struct domain_device *dev, int phy_id) } } - res = 0; } return res;