projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8afd831
)
greybus: es2: update the bulk_ep_set value accepted by map_to_cpor_ep()
author
Alexandre Bailon
<abailon@baylibre.com>
Fri, 4 Sep 2015 14:55:42 +0000
(16:55 +0200)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Fri, 4 Sep 2015 21:49:09 +0000
(14:49 -0700)
The endpoint set 0 is currently considered as invalid.
But 0 mean muxed cports on ep1 and ep2,
then it must not return -EINVAL.
Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/es2.c
b/drivers/staging/greybus/es2.c
index d6bd210a6337d472fa0549800357849d3fd85cc8..96090aaa4181447f04df27739949911491b1a0aa 100644
(file)
--- a/
drivers/staging/greybus/es2.c
+++ b/
drivers/staging/greybus/es2.c
@@
-149,7
+149,7
@@
int map_cport_to_ep(struct es1_ap_dev *es1,
int retval;
struct cport_to_ep *cport_to_ep;
- if (bulk_ep_set
==
0 || bulk_ep_set >= NUM_BULKS)
+ if (bulk_ep_set
<
0 || bulk_ep_set >= NUM_BULKS)
return -EINVAL;
if (cport_id >= es1->hd->num_cports)
return -EINVAL;