2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 03:33:59 +08:00

usb: gadget: f_fs: Remove redundant unlikely()

IS_ERR() already implies unlikely(), so it can be omitted here.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Tobias Klauser 2010-12-09 15:52:39 +01:00 committed by Greg Kroah-Hartman
parent 16325f18ea
commit 537baabbdf

View File

@ -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;
}