uli526x: drop newlines from device name
Device names should not contain non-printable characters like newlines. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
1384f3bb8a
commit
ec0d879f08
@ -225,7 +225,7 @@ int uli526x_initialize(bd_t *bis)
|
||||
iobase &= ~0xf;
|
||||
|
||||
dev = (struct eth_device *)malloc(sizeof *dev);
|
||||
sprintf(dev->name, "uli526x#%d\n", card_number);
|
||||
sprintf(dev->name, "uli526x#%d", card_number);
|
||||
db = (struct uli526x_board_info *)
|
||||
malloc(sizeof(struct uli526x_board_info));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user