[PATCH 2/2] Cleanup stray newline in a return statement

Kristian Høgsberg hoegsberg at gmail.com
Fri Jan 17 11:31:29 PST 2014


On Tue, Jan 14, 2014 at 09:58:34PM +0000, Bryce W. Harrington wrote:
> 
> Signed-off-by: Bryce Harrington <b.harrington at samsung.com>

Hehe, I wonder where that semi-colon was going.  Thanks.

Kristian

> ---
>  src/libbacklight.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/src/libbacklight.c b/src/libbacklight.c
> index b3acc63..a9d7ef1 100644
> --- a/src/libbacklight.c
> +++ b/src/libbacklight.c
> @@ -51,8 +51,7 @@ static long backlight_get(struct backlight *backlight, char *node)
>  	long value, ret;
>  
>  	if (asprintf(&path, "%s/%s", backlight->path, node) < 0)
> -		return -ENOMEM
> -;
> +		return -ENOMEM;
>  	fd = open(path, O_RDONLY);
>  	if (fd < 0) {
>  		ret = -1;
> -- 
> 1.7.9.5
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list