diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-05-20 00:15:40 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-05-19 08:45:41 -0400 |
commit | bdb4a1305723f985249210a803105dbc48e86b64 (patch) | |
tree | 426ffd80d67db47aebf116a2f99529d56e507c3c /drivers/block | |
parent | 234f2725a5d03f78539f1d36cb32f2c4f9b1822c (diff) |
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>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/virtio_blk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 67dcb193ab2e..e32b24b7a3a2 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c | |||
@@ -225,7 +225,7 @@ static int virtblk_ioctl(struct block_device *bdev, fmode_t mode, | |||
225 | struct gendisk *disk = bdev->bd_disk; | 225 | struct gendisk *disk = bdev->bd_disk; |
226 | struct virtio_blk *vblk = disk->private_data; | 226 | struct virtio_blk *vblk = disk->private_data; |
227 | 227 | ||
228 | if (cmd == 'VBID') { | 228 | if (cmd == 0x56424944) { /* 'VBID' */ |
229 | void __user *usr_data = (void __user *)data; | 229 | void __user *usr_data = (void __user *)data; |
230 | char id_str[VIRTIO_BLK_ID_BYTES]; | 230 | char id_str[VIRTIO_BLK_ID_BYTES]; |
231 | int err; | 231 | int err; |