diff options
| author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2018-10-05 16:28:24 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-11 12:10:32 +0200 |
| commit | b4fc4e8340784e000030c5a59bf0791f9c3ce15e (patch) | |
| tree | b6712317ee04b5490d4e61b5240d3e6e333dea60 /lib/mpi/mpiutil.c | |
| parent | aa5a54a06b3e7c39348ac4a17aaeb36af9375353 (diff) | |
staging: greybus: loopback.c: remove unused gb_loopback::lbid
It's not obvious how the code prevents adding more than 31 elements to
the list and thus invoking undefined behaviour in the 1 << new_lbid
expression, and in practice causing ->lbid values to repeat every 32
elements.
But the definition of struct gb_loopback is local to loopback.c, and the
lbid field is entirely unused outside of this function, so it seems we
can just drop it entirely.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
