greybus: tidy up svc_in_callback() and cport_in_callback()
authorAlex Elder <elder@linaro.org>
Wed, 19 Nov 2014 18:27:14 +0000 (12:27 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 19 Nov 2014 18:41:12 +0000 (10:41 -0800)
commitc41f1651c4962e56548a5b580e60f66a724357e7
treeddb62c077b5d0ffe9ae708f56b5c8418354096a5
parent2292bac5e76846387152d1d20b10cb79f8c1b14b
greybus: tidy up svc_in_callback() and cport_in_callback()

The only use of local variable "es1" in in svc_in_callback() and
cport_in_callback() is to get at its hd field.  But we already have
that, so we can get rid of that local variable.

Also, rename the "cport" variable "cport_id" in cport_in_callback()
is to match the convention used elsewhere, and make it the proper
u16 type.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c