From 41808e5d12b1a39f687468b6b81c75c7a4fc0203 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Tue, 8 Sep 2020 22:18:41 +0200 Subject: sec: fix SIM not found due to typo while switch to Linux code style The bug being fixed in this commit was introduced in the following commit: b98a418 samsung-ipc: sec: switch to Linux code style b98a4188db6350794e8e7139065d71a25314e18c With that bug, on Replicant 6.0 0004 RC2, the SIM card is not found anymore, but some modem functionality still worked like getting the IMEI through the settings. Signed-off-by: Denis 'GNUtoo' Carikli --- samsung-ipc/sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c index 31b73de..b0ab647 100644 --- a/samsung-ipc/sec.c +++ b/samsung-ipc/sec.c @@ -201,8 +201,8 @@ void *ipc_sec_rsim_access_extract(const void *data, size_t size) if (data == NULL || size < sizeof(struct ipc_sec_rsim_access_response_header)) { - } return NULL; + } header = (struct ipc_sec_rsim_access_response_header *) data; if (header->length == 0 || -- cgit v1.2.3