]> git.baikalelectronics.ru Git - kernel.git/commit
x25: remove redundant pointer dev
authorColin Ian King <colin.i.king@gmail.com>
Sun, 8 May 2022 21:45:00 +0000 (22:45 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 May 2022 09:59:22 +0000 (11:59 +0200)
commit80f139fc6a59b1ddda6bab89ef92a1f99b75f73a
treec6f164f598c882f9317d76bfdbe84e6c75043cf5
parent780ad3b01659ab8834c39438138a9683973ba09b
x25: remove redundant pointer dev

Pointer dev is being assigned a value that is never used, the assignment
and the variable are redundant and can be removed. Also replace null check
with the preferred !ptr idiom.

Cleans up clang scan warning:
net/x25/x25_proc.c:94:26: warning: Although the value stored to 'dev' is
used in the enclosing expression, the value is never actually read
from 'dev' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220508214500.60446-1-colin.i.king@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/x25/x25_proc.c