linux-stable/drivers/staging/greybus
Rasmus Villemoes b4fc4e8340 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>
2018-10-11 12:10:32 +02:00
..
Documentation staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
tools staging: greybus: fix spelling mistake "entires" -> "entries" 2018-09-18 13:29:11 +02:00
arche-apb-ctrl.c staging: greybus: arche-apb-ctrl.c: Fix alignment should match open parenthesis 2017-12-19 14:58:30 +01:00
arche-platform.c staging: greybus: Use gpio_is_valid() 2018-04-29 15:25:52 +02:00
arche_platform.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
arpc.h staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
audio_apbridgea.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_apbridgea.h staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
audio_codec.c staging: remove unneeded static set .owner field in platform_driver 2018-09-14 10:45:51 +02:00
audio_codec.h staging: greybus: Fix warning to limit chars per line 2018-04-23 15:39:08 +02:00
audio_gb.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_manager.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_manager.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_manager_module.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_manager_private.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_manager_sysfs.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_module.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
audio_topology.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
authentication.c staging: greybus: authentication.c: Fix alignment should match open parenthesis 2018-01-22 11:48:06 +01:00
bootrom.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
bundle.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
bundle.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
camera.c treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
connection.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
connection.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
control.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
control.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
core.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
debugfs.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
es2.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
firmware.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
fw-core.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
fw-download.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
fw-management.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
gb-camera.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
gbphy.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
gbphy.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
gpio.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
greybus.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
greybus_authentication.h staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
greybus_firmware.h staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
greybus_id.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
greybus_manifest.h staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
greybus_protocols.h staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
greybus_trace.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
hd.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
hd.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
hid.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
i2c.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
interface.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
interface.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
Kconfig staging: greybus: enable compile testing of arche driver 2017-05-16 13:39:16 +02:00
light.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
log.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
loopback.c staging: greybus: loopback.c: remove unused gb_loopback::lbid 2018-10-11 12:10:32 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
manifest.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
manifest.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
module.c treewide: Use struct_size() for kmalloc()-family 2018-06-06 11:15:43 -07:00
module.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
operation.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
operation.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
power_supply.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
pwm.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
raw.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
sdio.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
spi.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
spilib.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
spilib.h staging: greybus: add SPDX identifiers to all greybus driver files 2017-11-11 14:46:20 +01:00
svc.c staging: greybus: Remove unused local variable 2018-05-06 19:11:23 -07:00
svc.h staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
svc_watchdog.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
TODO staging: greybus: Add TODO file with GPIO work items 2018-04-23 14:36:10 +02:00
uart.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
usb.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00
vibrator.c staging: greybus: Remove redundant license text 2017-11-11 14:46:21 +01:00