[Replicant] [libsamsung-ipc][PATCH 11/53] samsung-ipc: gen: switch to Linux code style

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Thu Jun 11 10:57:13 UTC 2020


This contains no functional changes.

The commented out code if any has also been preserved as it
could be relevant to the understanding of the code.

It will be kept until we understand why the code has been
commented. In that case we either need to remove it completely
or to replace it by a comment explaining why not having that
code was necessary.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 samsung-ipc/gen.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/samsung-ipc/gen.c b/samsung-ipc/gen.c
index 93eaeaa..b4b4ea3 100644
--- a/samsung-ipc/gen.c
+++ b/samsung-ipc/gen.c
@@ -23,13 +23,11 @@
 
 int ipc_gen_phone_res_check(const struct ipc_gen_phone_res_data *data)
 {
-    if (data == NULL)
-        return -1;
+	if (data == NULL)
+		return -1;
 
-    if (data->code & IPC_GEN_PHONE_RES_CODE_SUCCESS)
-        return 0;
+	if (data->code & IPC_GEN_PHONE_RES_CODE_SUCCESS)
+		return 0;
 
-    return -1;
+	return -1;
 }
-
-// vim:ts=4:sw=4:expandtab
-- 
2.27.0



More information about the Replicant mailing list