nicstar MODULE_PARM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



drivers/atm/nicstar.c in 2.4.0-test10 has these lines.

static char *mac[NS_MAX_CARDS] = { NULL
#if NS_MAX_CARDS > 1
                                 , NULL
#endif /* NS_MAX_CARDS > 1 */
#if NS_MAX_CARDS > 2
                                 , NULL
#endif /* NS_MAX_CARDS > 2 */
#if NS_MAX_CARDS > 3
                                 , NULL
#endif /* NS_MAX_CARDS > 3 */
#if NS_MAX_CARDS > 4
                                 , NULL
#endif /* NS_MAX_CARDS > 4 */
                                        };

#ifdef MODULE
MODULE_PARM(mac, "1-" __MODULE_STRING(NS_MAX_CARDS) "s");
#endif /* MODULE */

They can be reduced to the much more readable

static char *mac[NS_MAX_CARDS];
MODULE_PARM(mac, "1-" __MODULE_STRING(NS_MAX_CARDS) "s");

Patch is left to the maintainer to create and test, I have no hardware.

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux