projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01ccdf1
)
net: ena: Remove redundant unlikely()
author
Tobias Klauser
<
[email protected]
>
Tue, 26 Sep 2017 09:04:23 +0000
(11:04 +0200)
committer
David S. Miller
<
[email protected]
>
Tue, 26 Sep 2017 16:54:06 +0000
(09:54 -0700)
IS_ERR() already implies unlikely(), so it can be omitted.
Signed-off-by: Tobias Klauser <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/amazon/ena/ena_com.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/amazon/ena/ena_com.c
b/drivers/net/ethernet/amazon/ena/ena_com.c
index 52beba8c7a39990d3a9d6fb5910c689905a3a6a9..ded29af648c915f212f16da90f94588280b73d08 100644
(file)
--- a/
drivers/net/ethernet/amazon/ena/ena_com.c
+++ b/
drivers/net/ethernet/amazon/ena/ena_com.c
@@
-315,7
+315,7
@@
static struct ena_comp_ctx *ena_com_submit_admin_cmd(struct ena_com_admin_queue
cmd_size_in_bytes,
comp,
comp_size_in_bytes);
- if (
unlikely(IS_ERR(comp_ctx)
))
+ if (
IS_ERR(comp_ctx
))
admin_queue->running_state = false;
spin_unlock_irqrestore(&admin_queue->q_lock, flags);
@@
-1130,7
+1130,7
@@
int ena_com_execute_admin_command(struct ena_com_admin_queue *admin_queue,
comp_ctx = ena_com_submit_admin_cmd(admin_queue, cmd, cmd_size,
comp, comp_size);
- if (
unlikely(IS_ERR(comp_ctx)
)) {
+ if (
IS_ERR(comp_ctx
)) {
if (comp_ctx == ERR_PTR(-ENODEV))
pr_debug("Failed to submit command [%ld]\n",
PTR_ERR(comp_ctx));