]> git.baikalelectronics.ru Git - kernel.git/commit
net: bareudp: fix duplicate checks of data[] expressions
authorJean Sacren <sakiwit@gmail.com>
Thu, 28 Oct 2021 18:24:53 +0000 (12:24 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 12:41:28 +0000 (13:41 +0100)
commiteed0e8ef7a1fc0a0115ddfdcd676ce32b3e6b5f6
tree91bfd8c9497447fd1b1370d9d19900e7c1a0d83a
parent79ba9eb8c413cc9ba7a3c4e5f47f17914e508d0b
net: bareudp: fix duplicate checks of data[] expressions

Both !data[IFLA_BAREUDP_PORT] and !data[IFLA_BAREUDP_ETHERTYPE] are
checked.  We should remove the checks of data[IFLA_BAREUDP_PORT] and
data[IFLA_BAREUDP_ETHERTYPE] that follow since they are always true.

Put both statements together in group and balance the space on both
sides of '=' sign.

Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bareudp.c