staging: most: i2c: remove redundant list_mutex
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 8 May 2018 09:45:01 +0000 (11:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 May 2018 11:41:49 +0000 (13:41 +0200)
commiteb50842c5f5cf880bef97816cf5732de47a591bb
treeaa1d9da37dd35a0e79638fe41b22cb74e9210223
parent6471c2693f4e28004cee5ad96cad3bf975f7bfd6
staging: most: i2c: remove redundant list_mutex

The elements of the dev->rx.list are consumed in the pending_rx_work and
populated in the function enqueue() that cancels the pending_rx_work.

The function enqueue() and poison_channel() do not race anyway.

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