Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03a174b3 authored by Wei Yongjun's avatar Wei Yongjun Committed by Matthew Garrett
Browse files

sony-laptop: return a negative error code in sonypi_compat_init()



Return -1 in the error handling case instead of 0, as done elsewhere in
this function.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMattia Dongili <malattia@linux.it>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent 50e37cce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4320,7 +4320,8 @@ static int sony_pic_add(struct acpi_device *device)
		goto err_free_resources;
	}

	if (sonypi_compat_init())
	result = sonypi_compat_init();
	if (result)
		goto err_remove_input;

	/* request io port */