net: atm: Remove redundant check.
authorGavrilov Ilia <Ilia.Gavrilov@infotecs.ru>
Fri, 20 Oct 2023 12:21:16 +0000 (12:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2023 07:45:25 +0000 (08:45 +0100)
commit92fc97ae9cfd1e8c13d973ac92d224a185056840
tree442d45f2ebfb035415be34d5ed906f06feff3fc3
parent5e3704030b240ab6878c32abdc2e38b6bac9dfb8
net: atm: Remove redundant check.

Checking the 'adev' variable is unnecessary,
because 'cdev' has already been checked earlier.

Found by InfoTeCS on behalf of Linux Verification Center
(linuxtesting.org) with SVACE.

Fixes: 656d98b09d57 ("[ATM]: basic sysfs support for ATM devices")
Signed-off-by: Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/atm_sysfs.c