summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/greybus.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-06-16 19:43:05 -0700
committerGreg Kroah-Hartman <gregkh@google.com>2015-06-16 19:43:05 -0700
commitfd7b435f21239a022057b014aff0836403bfa54a (patch)
treefb04ebbe0d401de7c6c3d2afa5f3e2a622f231f2 /drivers/staging/greybus/greybus.h
parent9df94499c443d59291d247046cf3381ca06c1d36 (diff)
greybus: Revert "greybus: reserve host cport id 0"
This reverts commit 698d4bd3e7541a660a3c3665f0af9e787650a239 as Alex says it is broken. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus.h')
-rw-r--r--drivers/staging/greybus/greybus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h
index d727dea6847e..5c6f9607cf73 100644
--- a/drivers/staging/greybus/greybus.h
+++ b/drivers/staging/greybus/greybus.h
@@ -198,7 +198,7 @@ static inline int is_gb_connection(const struct device *dev)
static inline bool cport_id_valid(u16 cport_id)
{
- return cport_id && cport_id != CPORT_ID_BAD && cport_id <= CPORT_ID_MAX;
+ return cport_id != CPORT_ID_BAD && cport_id <= CPORT_ID_MAX;
}
#endif /* __KERNEL__ */