OSDN Git Service

uio: remove redundant check
authorChengguang Xu <cgxu519@gmx.com>
Sat, 19 Jan 2019 13:15:34 +0000 (21:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2019 11:03:16 +0000 (12:03 +0100)
commit54557665a4e776a1affa132faea87bc60c452617
treee32e9ff590e6d59e5f8bb07918a74b0818a2c253
parent1e09cdd506c8833a9d52cb61009798660cff4051
uio: remove redundant check

It is not necessary to check idev->info several times under
mutex lock, so just remove redundant check.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c