projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16325f1
)
usb: gadget: f_fs: Remove redundant unlikely()
author
Tobias Klauser
<tklauser@distanz.ch>
Thu, 9 Dec 2010 14:52:39 +0000
(15:52 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 10 Dec 2010 22:18:36 +0000
(14:18 -0800)
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>
drivers/usb/gadget/f_fs.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_fs.c
b/drivers/usb/gadget/f_fs.c
index 255969cd163975107887f32934dcdd3bc56b1592..1b7ae7c9d6834d9857e90eda0107f726bf2e1639 100644
(file)
--- a/
drivers/usb/gadget/f_fs.c
+++ b/
drivers/usb/gadget/f_fs.c
@@
-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;
}