]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: get rid of gbuf->actual_length
authorAlex Elder <elder@linaro.org>
Thu, 6 Nov 2014 13:01:01 +0000 (07:01 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Thu, 6 Nov 2014 16:03:35 +0000 (08:03 -0800)
commitc69a50f2ce2eaec8ee9f50081a88589d1231ef3b
tree638a21131864fb6084c335eb9daf7406c547a0c5
parent7a0eed065ded836bbb6b71da965cef0d6a0aeecf
greybus: get rid of gbuf->actual_length

Right now, the actual_length field of a gbuf is only ever assigned,
never used.  We now fill gbufs only with operation messages, and
they encode within them the amount of space "actually used" in a
buffer in a request-specific way.  As a result, there's no need
for the gbuf->actual_length field, so we can remove it.

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