aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-04 14:30:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-22 07:34:10 +0200
commite1928327353d5ddd00b7d4d46f46961ea5c2dc34 (patch)
treee9a7452026dda5cdc0ae4d7d637222680d141bef /drivers/staging/greybus
parentstaging: greybus: Replace function gb_i2c_device_setup() (diff)
downloadlinux-dev-e1928327353d5ddd00b7d4d46f46961ea5c2dc34.tar.xz
linux-dev-e1928327353d5ddd00b7d4d46f46961ea5c2dc34.zip
staging: greybus: remove redundant assignment to variable is_empty
The variable is_empty is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Vaibhav Agarwal <vaibhav.sr@gmail.com> Reviewed-by: Mark Greer <mgreer@animalcreek.com> Link: https://lore.kernel.org/r/20190704133031.28809-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/audio_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/audio_manager.c b/drivers/staging/greybus/audio_manager.c
index c2a4af4c1d06..9b19ea9d3fa1 100644
--- a/drivers/staging/greybus/audio_manager.c
+++ b/drivers/staging/greybus/audio_manager.c
@@ -86,7 +86,7 @@ EXPORT_SYMBOL_GPL(gb_audio_manager_remove);
void gb_audio_manager_remove_all(void)
{
struct gb_audio_manager_module *module, *next;
- int is_empty = 1;
+ int is_empty;
down_write(&modules_rwsem);