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

Commit ff1b9a0d authored by Sagar Dharia's avatar Sagar Dharia Committed by Gerrit - the friendly Code Review server
Browse files

soc: msm: service-notifier: Typecast error-code to fix compile-error



Cast return error code to pointer to match API return type.

Change-Id: Id5da404c9a7b817c7641bb15b5439f4e58d9f90b
Signed-off-by: default avatarSagar Dharia <sdharia@codeaurora.org>
parent 73135edf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -53,7 +53,7 @@ static void *service_notif_register_notifier(const char *service_path,
				int instance_id, struct notifier_block *nb,
				int *curr_state)
{
	return -ENODEV;
	return ERR_PTR(-ENODEV);
}

static int service_notif_unregister_notifier(void *service_notif_handle,