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

net: usb: delete extra space and tab in blank line

delete extra space and tab in blank line, there is no functional change.

Signed-off-by: Xie Shaowen <studentxswpy@163.com>
Link: https://lore.kernel.org/r/20220727081253.3043941-1-studentxswpy@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Xie Shaowen and committed by
Jakub Kicinski
efe3e6b5 272ac32f

+30 -30
+22 -22
drivers/net/usb/catc.c
··· 8 8 * 9 9 * Based on the work of 10 10 * Donald Becker 11 - * 11 + * 12 12 * Old chipset support added by Simon Evans <spse@secret.org.uk> 2002 13 13 * - adds support for Belkin F5U011 14 14 */ 15 15 16 16 /* 17 - * 17 + * 18 18 * Should you need to contact me, the author, you can do so either by 19 19 * e-mail - mail your message to <vojtech@suse.cz>, or by paper mail: 20 20 * Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic ··· 54 54 55 55 /* 56 56 * Some defines. 57 - */ 57 + */ 58 58 59 59 #define STATS_UPDATE (HZ) /* Time between stats updates */ 60 60 #define TX_TIMEOUT (5*HZ) /* Max time the queue can be stopped */ ··· 332 332 dev_err(&catc->usbdev->dev, 333 333 "submit(rx_urb) status %d\n", res); 334 334 } 335 - } 335 + } 336 336 } 337 337 resubmit: 338 338 res = usb_submit_urb (urb, GFP_ATOMIC); ··· 538 538 unsigned long flags; 539 539 540 540 spin_lock_irqsave(&catc->ctrl_lock, flags); 541 - 541 + 542 542 q = catc->ctrl_queue + catc->ctrl_head; 543 543 544 544 q->dir = dir; ··· 639 639 if (netdev->flags & IFF_PROMISC) { 640 640 memset(catc->multicast, 0xff, 64); 641 641 rx |= (!catc->is_f5u011) ? RxPromisc : AltRxPromisc; 642 - } 642 + } 643 643 644 644 if (netdev->flags & IFF_ALLMULTI) { 645 645 memset(catc->multicast, 0xff, 64); ··· 806 806 catc->tx_urb = usb_alloc_urb(0, GFP_KERNEL); 807 807 catc->rx_urb = usb_alloc_urb(0, GFP_KERNEL); 808 808 catc->irq_urb = usb_alloc_urb(0, GFP_KERNEL); 809 - if ((!catc->ctrl_urb) || (!catc->tx_urb) || 809 + if ((!catc->ctrl_urb) || (!catc->tx_urb) || 810 810 (!catc->rx_urb) || (!catc->irq_urb)) { 811 811 dev_err(&intf->dev, "No free urbs available.\n"); 812 812 ret = -ENOMEM; ··· 814 814 } 815 815 816 816 /* The F5U011 has the same vendor/product as the netmate but a device version of 0x130 */ 817 - if (le16_to_cpu(usbdev->descriptor.idVendor) == 0x0423 && 817 + if (le16_to_cpu(usbdev->descriptor.idVendor) == 0x0423 && 818 818 le16_to_cpu(usbdev->descriptor.idProduct) == 0xa && 819 819 le16_to_cpu(catc->usbdev->descriptor.bcdDevice) == 0x0130) { 820 820 dev_dbg(dev, "Testing for f5u011\n"); 821 - catc->is_f5u011 = 1; 821 + catc->is_f5u011 = 1; 822 822 atomic_set(&catc->recq_sz, 0); 823 823 pktsz = RX_PKT_SZ; 824 824 } else { 825 825 pktsz = RX_MAX_BURST * (PKT_SZ + 2); 826 826 } 827 - 827 + 828 828 usb_fill_control_urb(catc->ctrl_urb, usbdev, usb_sndctrlpipe(usbdev, 0), 829 829 NULL, NULL, 0, catc_ctrl_done, catc); 830 830 ··· 854 854 *buf = 0x87654321; 855 855 catc_write_mem(catc, 0xfa80, buf, 4); 856 856 catc_read_mem(catc, 0x7a80, buf, 4); 857 - 857 + 858 858 switch (*buf) { 859 859 case 0x12345678: 860 860 catc_set_reg(catc, TxBufCount, 8); ··· 873 873 } 874 874 875 875 kfree(buf); 876 - 876 + 877 877 dev_dbg(dev, "Getting MAC from SEEROM.\n"); 878 - 878 + 879 879 catc_get_mac(catc, macbuf); 880 880 eth_hw_addr_set(netdev, macbuf); 881 - 881 + 882 882 dev_dbg(dev, "Setting MAC into registers.\n"); 883 - 883 + 884 884 for (i = 0; i < 6; i++) 885 885 catc_set_reg(catc, StationAddr0 - i, netdev->dev_addr[i]); 886 - 886 + 887 887 dev_dbg(dev, "Filling the multicast list.\n"); 888 - 888 + 889 889 eth_broadcast_addr(broadcast); 890 890 catc_multicast(broadcast, catc->multicast); 891 891 catc_multicast(netdev->dev_addr, catc->multicast); 892 892 catc_write_mem(catc, 0xfa80, catc->multicast, 64); 893 - 893 + 894 894 dev_dbg(dev, "Clearing error counters.\n"); 895 - 895 + 896 896 for (i = 0; i < 8; i++) 897 897 catc_set_reg(catc, EthStats + i, 0); 898 898 catc->last_stats = jiffies; 899 - 899 + 900 900 dev_dbg(dev, "Enabling.\n"); 901 - 901 + 902 902 catc_set_reg(catc, MaxBurst, RX_MAX_BURST); 903 903 catc_set_reg(catc, OpModes, OpTxMerge | OpRxMerge | OpLenInclude | Op3MemWaits); 904 904 catc_set_reg(catc, LEDCtrl, LEDLink); ··· 908 908 catc_reset(catc); 909 909 catc_get_mac(catc, macbuf); 910 910 eth_hw_addr_set(netdev, macbuf); 911 - 911 + 912 912 dev_dbg(dev, "Setting RX Mode\n"); 913 913 catc->rxmode[0] = RxEnable | RxPolarity | RxMultiCast; 914 914 catc->rxmode[1] = 0;
+5 -5
drivers/net/usb/cdc_subset.c
··· 120 120 121 121 #endif /* CONFIG_USB_AN2720 */ 122 122 123 - 123 + 124 124 #ifdef CONFIG_USB_BELKIN 125 125 #define HAVE_HARDWARE 126 126 ··· 140 140 #endif /* CONFIG_USB_BELKIN */ 141 141 142 142 143 - 143 + 144 144 #ifdef CONFIG_USB_EPSON2888 145 145 #define HAVE_HARDWARE 146 146 ··· 167 167 168 168 #endif /* CONFIG_USB_EPSON2888 */ 169 169 170 - 170 + 171 171 /*------------------------------------------------------------------------- 172 172 * 173 173 * info from Jonathan McDowell <noodles@earth.li> ··· 181 181 }; 182 182 #endif /* CONFIG_USB_KC2190 */ 183 183 184 - 184 + 185 185 #ifdef CONFIG_USB_ARMLINUX 186 186 #define HAVE_HARDWARE 187 187 ··· 222 222 223 223 #endif /* CONFIG_USB_ARMLINUX */ 224 224 225 - 225 + 226 226 /*-------------------------------------------------------------------------*/ 227 227 228 228 #ifndef HAVE_HARDWARE
+1 -1
drivers/net/usb/kaweth.c
··· 221 221 dma_addr_t rxbufferhandle; 222 222 __u8 *rx_buf; 223 223 224 - 224 + 225 225 struct sk_buff *tx_skb; 226 226 227 227 __u8 *firmware_buf;
+1 -1
drivers/net/usb/plusb.c
··· 18 18 19 19 20 20 /* 21 - * Prolific PL-2301/PL-2302 driver ... http://www.prolific.com.tw/ 21 + * Prolific PL-2301/PL-2302 driver ... http://www.prolific.com.tw/ 22 22 * 23 23 * The protocol and handshaking used here should be bug-compatible 24 24 * with the Linux 2.2 "plusb" driver, by Deti Fliegl.
+1 -1
drivers/net/usb/usbnet.c
··· 381 381 } 382 382 EXPORT_SYMBOL_GPL(usbnet_update_max_qlen); 383 383 384 - 384 + 385 385 /*------------------------------------------------------------------------- 386 386 * 387 387 * Network Device Driver (peer link to "Host Device", from USB host)