diff options
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 1bd313dcf6af..eab81c6c0ca5 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -422,12 +422,9 @@ cciss_proc_write(struct file *file, const char __user *buf, | |||
422 | if (strncmp(ENGAGE_SCSI, buffer, sizeof ENGAGE_SCSI - 1) == 0) { | 422 | if (strncmp(ENGAGE_SCSI, buffer, sizeof ENGAGE_SCSI - 1) == 0) { |
423 | struct seq_file *seq = file->private_data; | 423 | struct seq_file *seq = file->private_data; |
424 | ctlr_info_t *h = seq->private; | 424 | ctlr_info_t *h = seq->private; |
425 | int rc; | ||
426 | 425 | ||
427 | rc = cciss_engage_scsi(h->ctlr); | 426 | err = cciss_engage_scsi(h->ctlr); |
428 | if (rc != 0) | 427 | if (err == 0) |
429 | err = -rc; | ||
430 | else | ||
431 | err = length; | 428 | err = length; |
432 | } else | 429 | } else |
433 | #endif /* CONFIG_CISS_SCSI_TAPE */ | 430 | #endif /* CONFIG_CISS_SCSI_TAPE */ |