提交 4f09ac9d 编写于 作者: G Gustavo A. R. Silva 提交者: Martin K. Petersen

scsi: isci: remote_device: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where
we are expecting to fall through.

Notice that, in this particular case, a dash is added as a token in order
to separate the "fall through" annotations from the rest of the comment on
the same line, which is what GCC is expecting to find.
Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: NArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 1aba50b8
......@@ -310,7 +310,7 @@ static void isci_remote_device_not_ready(struct isci_host *ihost,
/* Kill all outstanding requests for the device. */
sci_remote_device_terminate_requests(idev);
/* Fall through into the default case... */
/* Fall through - into the default case... */
default:
clear_bit(IDEV_IO_READY, &idev->flags);
break;
......@@ -593,7 +593,7 @@ enum sci_status sci_remote_device_event_handler(struct isci_remote_device *idev,
break;
}
/* Else, fall through and treat as unhandled... */
/* fall through - and treat as unhandled... */
default:
dev_dbg(scirdev_to_dev(idev),
"%s: device: %p event code: %x: %s\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册