staging: most: i2c: remove redundant is_open
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:45:00 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:49 +0000 (13:41 +0200)
commit6471c2693f4e28004cee5ad96cad3bf975f7bfd6
treeb4f117d2413ad7761b55ab99097de17d8e301181
parent0003718c92a3d05a8ae100aecffb1e18b3dd9850
staging: most: i2c: remove redundant is_open

The variable is_open is checked only in the work function
pending_rx_work() that is only active between the calls
configure_channel() and poison_channel().

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/i2c/i2c.c