Skip to content

Commit

Permalink
scsi_debug: fix missing "break;" in SDEBUG_UA_CAPACITY_CHANGED case
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ewan D. Milne authored and Christoph Hellwig committed Dec 15, 2014
1 parent 4bc6b63 commit f49accf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/scsi_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f49accf

Please sign in to comment.