summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorEwan D. Milne <emilne@redhat.com>2014-12-04 11:49:25 -0500
committerChristoph Hellwig <hch@lst.de>2014-12-15 13:34:27 +0100
commitf49accf1eb398102d722a89fdbb76ad17c5c5220 (patch)
treee0dd7423856126a5eba1a17a5c26ed343668aae4 /drivers/scsi
parent4bc6b63482a069baa2eeaba3e4a0b5df75263dc5 (diff)
downloadop-kernel-dev-f49accf1eb398102d722a89fdbb76ad17c5c5220.zip
op-kernel-dev-f49accf1eb398102d722a89fdbb76ad17c5c5220.tar.gz
scsi_debug: fix missing "break;" in SDEBUG_UA_CAPACITY_CHANGED case
This eliminates a superfluous log message when the capacity is changed: "check_readiness: unexpected unit attention code=3" Signed-off-by: Ewan D. Milne <emilne@redhat.com> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c
index 0d0e059..7b8b51b 100644
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@ -816,6 +816,7 @@ static int check_readiness(struct scsi_cmnd *SCpnt, int uas_only,
UA_CHANGED_ASC, CAPACITY_CHANGED_ASCQ);
if (debug)
cp = "capacity data changed";
+ break;
default:
pr_warn("%s: unexpected unit attention code=%d\n",
__func__, k);
OpenPOWER on IntegriCloud