]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
RDMA/nes: remove redundant check on udata
authorColin Ian King <colin.king@canonical.com>
Sat, 2 Mar 2019 23:06:36 +0000 (23:06 +0000)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 26 Mar 2019 15:07:45 +0000 (12:07 -0300)
commita6a9274a7c71573c8921080da990696702f7301c
tree796261067c0e356112c0884d5c30f4902e17ac14
parent638267537ad9c751f9f8b4763e616fe237d379c9
RDMA/nes: remove redundant check on udata

The non-null check on udata is redundant as this check was performed just
a few statements earlier and the check is always true as udata must be
non-null at this point. Remove redundant the check on udata and the
redundant else part that can never be executed.

Detected by CoverityScan, CID#1477317 ("Logically dead code")

Fixes: 899444505473 ("IB/{hw,sw}: Remove 'uobject->context' dependency in object creation APIs")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/nes/nes_verbs.c