aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-04-04 19:11:17 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-04-05 17:26:18 +0200
commit2b7cebf8e2e23d17e7585e0c43fe302d5d906158 (patch)
tree43f87ad79aa3d6fc8564b906c8491f0869194cbc
parentbcdd50a063b8f7b3374bb832dfc2a736ebf66f1e (diff)
downloadhardware_replicant_libsamsung-ipc-2b7cebf8e2e23d17e7585e0c43fe302d5d906158.tar.gz
hardware_replicant_libsamsung-ipc-2b7cebf8e2e23d17e7585e0c43fe302d5d906158.tar.bz2
hardware_replicant_libsamsung-ipc-2b7cebf8e2e23d17e7585e0c43fe302d5d906158.zip
samsung-ipc: gen: switch to Linux code style
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@cyberdimension.org>
-rw-r--r--samsung-ipc/gen.c12
1 files 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