Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ibmvnic: remove unused rc variable

gcc with W=1 reports
drivers/net/ethernet/ibm/ibmvnic.c:194:13: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
^
This variable is not used so remove it.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308040609.zQsSXWXI-lkp@intel.com/
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
Reviewed-by: Nick Child <nnac123@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Yu Liao and committed by
David S. Miller
813f3662 b1d13f7a

+1 -2
+1 -2
drivers/net/ethernet/ibm/ibmvnic.c
··· 191 191 struct ibmvnic_sub_crq_queue **rxqs; 192 192 struct ibmvnic_sub_crq_queue **txqs; 193 193 int num_rxqs, num_txqs; 194 - int rc, i; 194 + int i; 195 195 196 - rc = 0; 197 196 rxqs = adapter->rx_scrq; 198 197 txqs = adapter->tx_scrq; 199 198 num_txqs = adapter->num_active_tx_scrqs;