amlogic: frame_provider: Remove useless null check 75/292575/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 4 May 2023 01:56:45 +0000 (10:56 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 8 May 2023 09:38:40 +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: I17b7c67627a7f1fbcdd8044be0254159f86e3693
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/amlogic/media_modules/frame_provider/decoder/h265/vh265.c

index d1bfec7..272025a 100644 (file)
@@ -12626,7 +12626,7 @@ static int ammvdec_h265_probe(struct platform_device *pdev)
        hevc->platform_dev = pdev;
 
        if (((get_dbg_flag(hevc) & IGNORE_PARAM_FROM_CONFIG) == 0) &&
-                       pdata->config && pdata->config_len) {
+                       pdata->config_len) {
 #ifdef CONFIG_AMLOGIC_MEDIA_MULTI_DEC
                /*use ptr config for doubel_write_mode, etc*/
                hevc_print(hevc, 0, "pdata->config=%s\n", pdata->config);