Commit ffc59e3
RDMA/bnxt_re: Remove unusable nq variable
Remove nq variable from bnxt_re_create_srq() and bnxt_re_destroy_srq()
as it generates the following compilation warnings:
>> drivers/infiniband/hw/bnxt_re/ib_verbs.c:1777:24: warning: variable
'nq' set but not used [-Wunused-but-set-variable]
1777 | struct bnxt_qplib_nq *nq = NULL;
| ^
drivers/infiniband/hw/bnxt_re/ib_verbs.c:1828:24: warning: variable
'nq' set but not used [-Wunused-but-set-variable]
1828 | struct bnxt_qplib_nq *nq = NULL;
| ^
2 warnings generated.
Fixes: 6b395d3 ("RDMA/bnxt_re: Fix budget handling of notification queue")
Link: https://patch.msgid.link/r/8a4343e217d7d1c0a5a786b785c4ac57cb72a2a0.1744288299.git.leonro@nvidia.com
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504091055.CzgXnk4C-lkp@intel.com/
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>1 parent 9a0e6f1 commit ffc59e3
1 file changed
+0
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
1777 | | - | |
1778 | 1777 | | |
1779 | | - | |
1780 | | - | |
1781 | 1778 | | |
1782 | 1779 | | |
1783 | 1780 | | |
| |||
1825 | 1822 | | |
1826 | 1823 | | |
1827 | 1824 | | |
1828 | | - | |
1829 | 1825 | | |
1830 | 1826 | | |
1831 | 1827 | | |
| |||
1871 | 1867 | | |
1872 | 1868 | | |
1873 | 1869 | | |
1874 | | - | |
1875 | 1870 | | |
1876 | 1871 | | |
1877 | 1872 | | |
| |||
0 commit comments