]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
netdev: use const for some name functions
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 30 Sep 2008 09:22:14 +0000 (02:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2008 09:22:14 +0000 (02:22 -0700)
commitcf04a4c764cd3e651a64b3e667bb6a673ead99e1
tree61fc379e33ca08e68326b9f76577fd2a57435034
parentdb4148da2cc84c31419b5e3ae3115ac6e11817a1
netdev: use const for some name functions

dev_change_name and netdev_drivername should use const char on
parameters that are read-only input values. The strcpy to newname is
not needed since newname is not used later in function.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c