]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
uli526x: drop newlines from device name
authorMike Frysinger <vapier@gentoo.org>
Thu, 10 Jun 2010 02:14:21 +0000 (22:14 -0400)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 12 Jul 2010 07:14:28 +0000 (00:14 -0700)
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>
drivers/net/uli526x.c

index 9477851a75e0d3253055654ac26af36bca117504..56eee7bee60551e4147f0f4a0c3557e0eeb6ef3b 100644 (file)
@@ -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));