summaryrefslogtreecommitdiff
path: root/net/atm
diff options
context:
space:
mode:
authorGavrilov Ilia <Ilia.Gavrilov@infotecs.ru>2023-10-20 12:21:16 +0000
committerDavid S. Miller <davem@davemloft.net>2023-10-23 08:45:25 +0100
commit92fc97ae9cfd1e8c13d973ac92d224a185056840 (patch)
tree442d45f2ebfb035415be34d5ed906f06feff3fc3 /net/atm
parent5e3704030b240ab6878c32abdc2e38b6bac9dfb8 (diff)
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>
Diffstat (limited to 'net/atm')
-rw-r--r--net/atm/atm_sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/atm/atm_sysfs.c b/net/atm/atm_sysfs.c
index 466353b3dde4..54e7fb1a4ee5 100644
--- a/net/atm/atm_sysfs.c
+++ b/net/atm/atm_sysfs.c
@@ -116,8 +116,6 @@ static int atm_uevent(const struct device *cdev, struct kobj_uevent_env *env)
return -ENODEV;
adev = to_atm_dev(cdev);
- if (!adev)
- return -ENODEV;
if (add_uevent_var(env, "NAME=%s%d", adev->type, adev->number))
return -ENOMEM;