stdio: Correct code style nits
authorSimon Glass <sjg@chromium.org>
Sun, 13 Nov 2016 21:21:59 +0000 (14:21 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 26 Nov 2016 00:59:30 +0000 (17:59 -0700)
Fix a few code style nits in stdio_get_by_name().

Signed-off-by: Simon Glass <sjg@chromium.org>
common/stdio.c

index 8e4a9beef4542dab055489c31589a0f4c64b3707..a7d016bb9d2409d3e226afe41495fe30d69063d8 100644 (file)
@@ -173,12 +173,12 @@ static int stdio_probe_device(const char *name, enum uclass_id id,
 }
 #endif
 
-struct stdio_devstdio_get_by_name(const char *name)
+struct stdio_dev *stdio_get_by_name(const char *name)
 {
        struct list_head *pos;
        struct stdio_dev *sdev;
 
-       if(!name)
+       if (!name)
                return NULL;
 
        list_for_each(pos, &(devs.list)) {