Commit bdb4a1305723f985249210a803105dbc48e86b64
1 parent
234f2725a5
Exists in
master
and in
20 other branches
virtio_blk: remove multichar constant.
drivers/block/virtio_blk.c:228:13: warning: multi-character character constant Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Cc: john cooper <john.cooper@redhat.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/block/virtio_blk.c
| ... | ... | @@ -225,7 +225,7 @@ |
| 225 | 225 | struct gendisk *disk = bdev->bd_disk; |
| 226 | 226 | struct virtio_blk *vblk = disk->private_data; |
| 227 | 227 | |
| 228 | - if (cmd == 'VBID') { | |
| 228 | + if (cmd == 0x56424944) { /* 'VBID' */ | |
| 229 | 229 | void __user *usr_data = (void __user *)data; |
| 230 | 230 | char id_str[VIRTIO_BLK_ID_BYTES]; |
| 231 | 231 | int err; |