mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
cciss: Fix weird usage of ENXIO in cciss_scsi.c
cciss: Fix weird usage of ENXIO in cciss_scsi.c Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
This commit is contained in:
parent
5c07a311a8
commit
8721c81f64
2 changed files with 3 additions and 6 deletions
|
@ -422,12 +422,9 @@ cciss_proc_write(struct file *file, const char __user *buf,
|
|||
if (strncmp(ENGAGE_SCSI, buffer, sizeof ENGAGE_SCSI - 1) == 0) {
|
||||
struct seq_file *seq = file->private_data;
|
||||
ctlr_info_t *h = seq->private;
|
||||
int rc;
|
||||
|
||||
rc = cciss_engage_scsi(h->ctlr);
|
||||
if (rc != 0)
|
||||
err = -rc;
|
||||
else
|
||||
err = cciss_engage_scsi(h->ctlr);
|
||||
if (err == 0)
|
||||
err = length;
|
||||
} else
|
||||
#endif /* CONFIG_CISS_SCSI_TAPE */
|
||||
|
|
|
@ -1547,7 +1547,7 @@ cciss_engage_scsi(int ctlr)
|
|||
if (sa->registered) {
|
||||
printk("cciss%d: SCSI subsystem already engaged.\n", ctlr);
|
||||
spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
|
||||
return ENXIO;
|
||||
return -ENXIO;
|
||||
}
|
||||
sa->registered = 1;
|
||||
spin_unlock_irqrestore(CCISS_LOCK(ctlr), flags);
|
||||
|
|
Loading…
Reference in a new issue