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-06-27 18:38:09 +0200
commit66e23fbe6051e0cdef63598b5146c481e54bc622 (patch)
tree42af7708835ffa011360eb4579084744eb71f1c0
parent7eac1aa74621ac061e745b3f0613cde141d525ab (diff)
downloadhardware_replicant_libsamsung-ipc-66e23fbe6051e0cdef63598b5146c481e54bc622.tar.gz
hardware_replicant_libsamsung-ipc-66e23fbe6051e0cdef63598b5146c481e54bc622.tar.bz2
hardware_replicant_libsamsung-ipc-66e23fbe6051e0cdef63598b5146c481e54bc622.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> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-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