Re: [PATCH] RDMA/iwpm: Delete unnecessary checks before the macro call âdev_kfree_skbâ

From: Jason Gunthorpe
Date: Tue Aug 27 2019 - 12:27:24 EST


On Wed, Aug 21, 2019 at 07:47:08PM +0200, Markus Elfring wrote:
> From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> Date: Wed, 21 Aug 2019 19:30:09 +0200
>
> 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.
>
> Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
> ---
> drivers/infiniband/core/iwpm_msg.c | 9 +++------
> drivers/infiniband/core/iwpm_util.c | 9 +++------
> 2 files changed, 6 insertions(+), 12 deletions(-)

Applied to for-next, thanks

Jason