OSDN Git Service

staging: greybus: remove redundant assignment to variable is_empty
authorColin Ian King <colin.king@canonical.com>
Thu, 4 Jul 2019 13:30:31 +0000 (14:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2019 05:34:10 +0000 (07:34 +0200)
commite1928327353d5ddd00b7d4d46f46961ea5c2dc34
treee9a7452026dda5cdc0ae4d7d637222680d141bef
parentbaacd53a3b72d1dc74a340d16b8cf560dfe24717
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>
drivers/staging/greybus/audio_manager.c