amlogic: avs2: Remove useless null check 73/292573/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 May 2023 01:15:52 +0000 (10:15 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 8 May 2023 09:38:30 +0000 (18:38 +0900)
Checking null for array address returns true always, so -Waddress
gives build warning from gcc 12. Remove the useless null check.

Change-Id: Iaecf9f867f981eb59e39d217eb5a634e246b483a
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/amlogic/media_modules/frame_provider/decoder/avs2/vavs2.c

index 26238d8..6673502 100644 (file)
@@ -7310,7 +7310,7 @@ static int ammvdec_avs2_probe(struct platform_device *pdev)
                dec->stat |= VP9_TRIGGER_FRAME_ENABLE;
 #if 1
        if ((debug & IGNORE_PARAM_FROM_CONFIG) == 0 &&
-                       pdata->config && pdata->config_len) {
+                       pdata->config_len) {
                /*use ptr config for doubel_write_mode, etc*/
                avs2_print(dec, 0, "pdata->config=%s\n", pdata->config);
                if (get_config_int(pdata->config, "avs2_double_write_mode",