Commit 2b272d4f authored by Jens Axboe's avatar Jens Axboe

sg: fix odd style (extra parenthesis) introduced by cmd filter patch

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 07359fc6
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment