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:
ba170ee
)
staging: most: fix misplaced constants in comparisons
author
Christian Gromm
<
[email protected]
>
Thu, 15 Oct 2015 11:28:57 +0000
(13:28 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 17 Oct 2015 06:09:41 +0000
(23:09 -0700)
This patch removes and fixes constants being misplaced in comparisons.
Signed-off-by: Christian Gromm <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/most/mostcore/core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/most/mostcore/core.c
b/drivers/staging/most/mostcore/core.c
index 1905547bf990c2c15f3515b84feacccd7f1f83ea..ca32b2147afac20d86b7b4afea47d68b5de582a6 100644
(file)
--- a/
drivers/staging/most/mostcore/core.c
+++ b/
drivers/staging/most/mostcore/core.c
@@
-938,7
+938,7
@@
most_c_obj *get_channel_by_name(char *mdev, char *mdev_ch)
break;
}
}
- if (unlikely(
2 > found
))
+ if (unlikely(
found < 2
))
return ERR_PTR(-EIO);
return c;
}
@@
-1561,7
+1561,7
@@
int most_start_channel(struct most_interface *iface, int id,
else
num_buffer = arm_mbo_chain(c, c->cfg.direction,
most_write_completion);
- if (unlikely(
0 ==
num_buffer)) {
+ if (unlikely(
!
num_buffer)) {
pr_info("failed to allocate memory\n");
ret = -ENOMEM;
goto error;