summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
authorJens Axboe2008-06-26 19:45:54 +0200
committerJens Axboe2008-07-03 13:21:14 +0200
commit2b272d4f7953a73ea1c1f7ba33d5a2d7439ce71b (patch)
tree1a0de5752bea9c56b669a2163f80dbf5ab1b4b53 /drivers/scsi/sg.c
parentblock: add bounce support to blk_rq_map_user_iov (diff)
downloadkernel-qcow2-linux-2b272d4f7953a73ea1c1f7ba33d5a2d7439ce71b.tar.gz
kernel-qcow2-linux-2b272d4f7953a73ea1c1f7ba33d5a2d7439ce71b.tar.xz
kernel-qcow2-linux-2b272d4f7953a73ea1c1f7ba33d5a2d7439ce71b.zip
sg: fix odd style (extra parenthesis) introduced by cmd filter patch
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r--drivers/scsi/sg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index f7abccaffaec..62b5bd5fd761 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -679,7 +679,7 @@ sg_new_write(Sg_fd *sfp, struct file *file, const char __user *buf,
sg_remove_request(sfp, srp);
return -EFAULT;
}
- if (read_only && (!blk_verify_command(file, cmnd))) {
+ if (read_only && !blk_verify_command(file, cmnd)) {
sg_remove_request(sfp, srp);
return -EPERM;
}