提交 2b272d4f 编写于 作者: J Jens Axboe

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

Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册