提交 537baabb 编写于 作者: T Tobias Klauser 提交者: Greg Kroah-Hartman

usb: gadget: f_fs: Remove redundant unlikely()

IS_ERR() already implies unlikely(), so it can be omitted here.
Signed-off-by: NTobias Klauser <tklauser@distanz.ch>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 16325f18
......@@ -427,7 +427,7 @@ static ssize_t ffs_ep0_write(struct file *file, const char __user *buf,
}
data = ffs_prepare_buffer(buf, len);
if (unlikely(IS_ERR(data))) {
if (IS_ERR(data)) {
ret = PTR_ERR(data);
break;
}
......@@ -500,7 +500,7 @@ static ssize_t ffs_ep0_write(struct file *file, const char __user *buf,
spin_unlock_irq(&ffs->ev.waitq.lock);
data = ffs_prepare_buffer(buf, len);
if (unlikely(IS_ERR(data))) {
if (IS_ERR(data)) {
ret = PTR_ERR(data);
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册