mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
block: replace sizeof(rq->cmd) with BLK_MAX_CDB
This is a preparation for changing rq->cmd from the static array to a pointer. Signed-off-by: FUJITA Tomonori <[email protected]> Cc: Boaz Harrosh <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
e7b241a771
commit
d34c87e4ba
3 changed files with 4 additions and 4 deletions
|
|
@ -173,7 +173,7 @@ void blk_dump_rq_flags(struct request *rq, char *msg)
|
|||
|
||||
if (blk_pc_request(rq)) {
|
||||
printk(KERN_INFO " cdb: ");
|
||||
for (bit = 0; bit < sizeof(rq->cmd); bit++)
|
||||
for (bit = 0; bit < BLK_MAX_CDB; bit++)
|
||||
printk("%02x ", rq->cmd[bit]);
|
||||
printk("\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue