mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
treewide: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
This commit is contained in:
@@ -611,7 +611,7 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what,
|
||||
drbd_set_out_of_sync(device, req->i.sector, req->i.size);
|
||||
drbd_report_io_error(device, req);
|
||||
__drbd_chk_io_error(device, DRBD_READ_ERROR);
|
||||
/* fall through. */
|
||||
fallthrough;
|
||||
case READ_AHEAD_COMPLETED_WITH_ERROR:
|
||||
/* it is legal to fail read-ahead, no __drbd_chk_io_error in that case. */
|
||||
mod_rq_state(req, m, RQ_LOCAL_PENDING, RQ_LOCAL_COMPLETED);
|
||||
@@ -836,7 +836,7 @@ int __req_mod(struct drbd_request *req, enum drbd_req_event what,
|
||||
} /* else: FIXME can this happen? */
|
||||
break;
|
||||
}
|
||||
/* else, fall through - to BARRIER_ACKED */
|
||||
fallthrough; /* to BARRIER_ACKED */
|
||||
|
||||
case BARRIER_ACKED:
|
||||
/* barrier ack for READ requests does not make sense */
|
||||
|
||||
Reference in New Issue
Block a user