Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Gavrilov Ilia and committed by
David S. Miller
92fc97ae 5e370403

-2
-2
net/atm/atm_sysfs.c
··· 116 116 return -ENODEV; 117 117 118 118 adev = to_atm_dev(cdev); 119 - if (!adev) 120 - return -ENODEV; 121 119 122 120 if (add_uevent_var(env, "NAME=%s%d", adev->type, adev->number)) 123 121 return -ENOMEM;