RDMA/iwpm: Delete unnecessary checks before the macro call "dev_kfree_skb"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 21 Aug 2019 17:30:09 +0000 (19:30 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 27 Aug 2019 16:09:23 +0000 (13:09 -0300)
commitfd1a52f38c23c5d99fc2e6178ac4b74c5cbcf793
treeebfac808e7b3f7b879fc42f96c66e71cc5a1be3f
parent1bc5ba836e3ba02b8c7981a1fb453fe33513526d
RDMA/iwpm: Delete unnecessary checks before the macro call "dev_kfree_skb"

The dev_kfree_skb() function performs also input parameter validation.
Thus the test around the shown calls is not needed.

This issue was detected by using the Coccinelle software.

Link: https://lore.kernel.org/r/16df4c50-1f61-d7c4-3fc8-3073666d281d@web.de
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/iwpm_msg.c
drivers/infiniband/core/iwpm_util.c