]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp: cleanup comparisons to NULL
authorTom Parkin <tparkin@katalix.com>
Thu, 23 Jul 2020 11:29:50 +0000 (12:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 18:54:40 +0000 (11:54 -0700)
commit2e9d478f6b1830d9d03a42c96ac5be4c7fa648c7
treef6ab4f820da4a733104e35cbf66134c0dd0ca07f
parent9598ac6f5b862c3c7a377c78c0983ee09d4798bc
l2tp: cleanup comparisons to NULL

checkpatch warns about comparisons to NULL, e.g.

        CHECK: Comparison to NULL could be written "!rt"
        #474: FILE: net/l2tp/l2tp_ip.c:474:
        +       if (rt == NULL) {

These sort of comparisons are generally clearer and more readable
the way checkpatch suggests, so update l2tp accordingly.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
net/l2tp/l2tp_debugfs.c
net/l2tp/l2tp_ip.c
net/l2tp/l2tp_ip6.c
net/l2tp/l2tp_netlink.c
net/l2tp/l2tp_ppp.c