projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
234f272
)
virtio_blk: remove multichar constant.
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 20 May 2010 04:15:40 +0000
(22:15 -0600)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 19 May 2010 12:45:41 +0000
(22:15 +0930)
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>
drivers/block/virtio_blk.c
patch
|
blob
|
history
diff --git
a/drivers/block/virtio_blk.c
b/drivers/block/virtio_blk.c
index 67dcb193ab2e228cc1085666de3641320b393daa..e32b24b7a3a270cebdc56e06a0d670452def770c 100644
(file)
--- 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,
struct gendisk *disk = bdev->bd_disk;
struct virtio_blk *vblk = disk->private_data;
- if (cmd ==
'VBID') {
+ if (cmd ==
0x56424944) { /* 'VBID' */
void __user *usr_data = (void __user *)data;
char id_str[VIRTIO_BLK_ID_BYTES];
int err;