greybus: connection: no need to verify connection->protocol
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 31 Aug 2015 11:51:11 +0000 (17:21 +0530)
committerJohan Hovold <johan@hovoldconsulting.com>
Thu, 3 Sep 2015 12:43:51 +0000 (14:43 +0200)
commit58f469a7da3c0b2e126851f850780de20182708b
tree7c814ee7788b894cdfb4b7623d7116929ee1c0e9
parent3dca03de9db7c467811bdfcb0b3b90cb9a184a8f
greybus: connection: no need to verify connection->protocol

connection->protocol will always be valid in gb_connection_init() as it
is called only from a single routine, after initializing the 'protocol'
field.

No need to check it again.

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/connection.c