summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-13 16:06:02 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-13 16:06:02 +0200
commit2a9c1de93fd9e74a79cc3fc66331d02797a98329 (patch)
treed8355e5597ef542d97b13d6758545f2528bdf48a /common/console.c
parent8c42a8f67c8ac14affd18c33e996b09197076f5e (diff)
downloadbarebox-2a9c1de93fd9e74a79cc3fc66331d02797a98329.tar.gz
barebox-2a9c1de93fd9e74a79cc3fc66331d02797a98329.tar.xz
whitespace cleanup
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/console.c b/common/console.c
index f65e15b1a6..47dcfe41d4 100644
--- a/common/console.c
+++ b/common/console.c
@@ -93,7 +93,7 @@ static int console_baudrate_set(struct device_d *dev, struct param_d *param,
int console_register(struct console_device *newcdev)
{
- struct console_device *cdev = first_console;
+ struct console_device *cdev = first_console;
struct device_d *dev = newcdev->dev;
if (newcdev->setbrg) {
@@ -125,12 +125,12 @@ int console_register(struct console_device *newcdev)
}
while (1) {
- if (!cdev->next) {
- cdev->next = newcdev;
- return 0;
- }
- cdev = cdev->next;
- }
+ if (!cdev->next) {
+ cdev->next = newcdev;
+ return 0;
+ }
+ cdev = cdev->next;
+ }
}
int getc (void)