]> err.no Git - linux-2.6/commitdiff
sg: fix odd style (extra parenthesis) introduced by cmd filter patch
authorJens Axboe <jens.axboe@oracle.com>
Thu, 26 Jun 2008 17:45:54 +0000 (19:45 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Jul 2008 11:21:14 +0000 (13:21 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/scsi/sg.c

index f7abccaffaec47c73465b7698bb0c6cdf47ae84e..62b5bd5fd761b03f8f31e799cc839ee6ca5c5a3b 100644 (file)
@@ -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;
        }