RDMA/uverbs: Remove redundant assignments
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 20 Jul 2020 17:56:26 +0000 (20:56 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Jul 2020 19:53:02 +0000 (16:53 -0300)
commit29f3fe1d6854053b32432d01f9810d6fff152ece
tree98b1831cda75ab4a44c5083db8ac46751efd5f19
parentd4d7f59643f795ae2f3233e3dddce3b4f549dcdc
RDMA/uverbs: Remove redundant assignments

The kbuild reported the following warning, so clean whole uverbs_cmd.c
file.

   drivers/infiniband/core/uverbs_cmd.c:1066:6: warning: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment]
    ret = uverbs_request(attrs, &cmd, sizeof(cmd));
        ^
   drivers/infiniband/core/uverbs_cmd.c:1064:0: note: Variable 'ret' is reassigned a value before the old one has been used.
    int    ret = -EINVAL;
   ^

Link: https://lore.kernel.org/r/20200720175627.1273096-2-leon@kernel.org
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_cmd.c