diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-12-19 10:56:56 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-12-29 12:24:36 -0500 |
commit | 06499fac65a273f1de0154679ab04f29dead2bba (patch) | |
tree | f3fd1e7ea65d5c3760b7ac2bb89262c727202965 /drivers/s390/scsi | |
parent | b228af0269eaf1af22dbae12a0860f8dbfd63662 (diff) |
[SCSI] zfcp: fix compile warning
Get rid of this one:
drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_thread':
drivers/s390/scsi/zfcp_erp.c:1400: warning: ignoring return value of
'down_interruptible', declared with attribute warn_unused_result
zfcp_erp_thread is a kernel thread which can't receive any signals.
So introduce a dummy variable and get rid of the warning.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r-- | drivers/s390/scsi/zfcp_erp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_erp.c b/drivers/s390/scsi/zfcp_erp.c index 4ed4950d994b..495a4a33e37d 100644 --- a/drivers/s390/scsi/zfcp_erp.c +++ b/drivers/s390/scsi/zfcp_erp.c | |||
@@ -1385,6 +1385,7 @@ static int zfcp_erp_thread(void *data) | |||
1385 | struct list_head *next; | 1385 | struct list_head *next; |
1386 | struct zfcp_erp_action *act; | 1386 | struct zfcp_erp_action *act; |
1387 | unsigned long flags; | 1387 | unsigned long flags; |
1388 | int ignore; | ||
1388 | 1389 | ||
1389 | daemonize("zfcperp%s", dev_name(&adapter->ccw_device->dev)); | 1390 | daemonize("zfcperp%s", dev_name(&adapter->ccw_device->dev)); |
1390 | /* Block all signals */ | 1391 | /* Block all signals */ |
@@ -1407,7 +1408,7 @@ static int zfcp_erp_thread(void *data) | |||
1407 | } | 1408 | } |
1408 | 1409 | ||
1409 | zfcp_rec_dbf_event_thread_lock(4, adapter); | 1410 | zfcp_rec_dbf_event_thread_lock(4, adapter); |
1410 | down_interruptible(&adapter->erp_ready_sem); | 1411 | ignore = down_interruptible(&adapter->erp_ready_sem); |
1411 | zfcp_rec_dbf_event_thread_lock(5, adapter); | 1412 | zfcp_rec_dbf_event_thread_lock(5, adapter); |
1412 | } | 1413 | } |
1413 | 1414 | ||