mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
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: 656d98b09d
("[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>
This commit is contained in:
parent
5e3704030b
commit
92fc97ae9c
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue