drivers/net/ethernet/sis/sis900.c:393 sis96x_get_mac_addr() warn: inconsistent indenting

From: kernel test robot
Date: Thu Nov 11 2021 - 15:47:59 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: debe436e77c72fcee804fb867f275e6d31aa999c
commit: 923ca6f61887c9ed5797af096ffb23bdb6e4c6fa ethernet: replace netdev->dev_addr 16bit writes
date: 4 weeks ago
config: i386-randconfig-m021-20211019 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

smatch warnings:
drivers/net/ethernet/sis/sis900.c:393 sis96x_get_mac_addr() warn: inconsistent indenting

vim +393 drivers/net/ethernet/sis/sis900.c

360
361 /**
362 * sis96x_get_mac_addr - Get MAC address for SiS962 or SiS963 model
363 * @pci_dev: the sis900 pci device
364 * @net_dev: the net device to get address for
365 *
366 * SiS962 or SiS963 model, use EEPROM to store MAC address. And EEPROM
367 * is shared by
368 * LAN and 1394. When accessing EEPROM, send EEREQ signal to hardware first
369 * and wait for EEGNT. If EEGNT is ON, EEPROM is permitted to be accessed
370 * by LAN, otherwise it is not. After MAC address is read from EEPROM, send
371 * EEDONE signal to refuse EEPROM access by LAN.
372 * The EEPROM map of SiS962 or SiS963 is different to SiS900.
373 * The signature field in SiS962 or SiS963 spec is meaningless.
374 * MAC address is read into @net_dev->dev_addr.
375 */
376
377 static int sis96x_get_mac_addr(struct pci_dev *pci_dev,
378 struct net_device *net_dev)
379 {
380 struct sis900_private *sis_priv = netdev_priv(net_dev);
381 void __iomem *ioaddr = sis_priv->ioaddr;
382 u16 addr[ETH_ALEN / 2];
383 int wait, rc = 0;
384
385 sw32(mear, EEREQ);
386 for (wait = 0; wait < 2000; wait++) {
387 if (sr32(mear) & EEGNT) {
388 int i;
389
390 /* get MAC address from EEPROM */
391 for (i = 0; i < 3; i++)
392 addr[i] = read_eeprom(ioaddr, i + EEPROMMACAddr);
> 393 eth_hw_addr_set(net_dev, (u8 *)addr);
394
395 rc = 1;
396 break;
397 }
398 udelay(1);
399 }
400 sw32(mear, EEDONE);
401 return rc;
402 }
403

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip