]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit181046a2f200791844266ad0211220db59cedede
tree98b1831cda75ab4a44c5083db8ac46751efd5f19
parent0b2044eb42bb99170ee8d0a3cc2b96bf19020a87
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