From: Simon Glass Date: Sun, 13 Nov 2016 21:21:59 +0000 (-0700) Subject: stdio: Correct code style nits X-Git-Tag: v2017.01-rc1~210^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ab29a34a598c2a78a43bcc68c0e097d814038f41;p=u-boot stdio: Correct code style nits Fix a few code style nits in stdio_get_by_name(). Signed-off-by: Simon Glass --- diff --git a/common/stdio.c b/common/stdio.c index 8e4a9beef4..a7d016bb9d 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -173,12 +173,12 @@ static int stdio_probe_device(const char *name, enum uclass_id id, } #endif -struct stdio_dev* stdio_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)) {