Jelajahi Sumber

video: driver: remove additional conditional check

there is a WARN_ON in place which will print the warning
in case of error, hence no need to have additional if check
for the same.

Change-Id: I09ca91fecd6cb8df4586621bb066754e39576d12
Signed-off-by: Dikshita Agarwal <[email protected]>
Dikshita Agarwal 2 tahun lalu
induk
melakukan
5e5d278b91
1 mengubah file dengan 0 tambahan dan 3 penghapusan
  1. 0 3
      driver/vidc/src/msm_vidc_state.c

+ 0 - 3
driver/vidc/src/msm_vidc_state.c

@@ -75,9 +75,6 @@ static int __strict_inst_check(struct msm_vidc_inst *inst, const char *function)
 
 	WARN_ON(fatal);
 
-	if (fatal)
-		d_vpr_e("%s: strict check failed\n", function);
-
 	return fatal ? -EINVAL : 0;
 }