mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-15 17:34:43 +00:00
common: avb_verify: Fix never-occurring avb_free(ops_data)
Cppcheck (v1.85) reports w/o this patch: [common/avb_verify.c:738] -> [common/avb_verify.c:741]: (warning) \ Either the condition 'ops' is redundant or there is possible null \ pointer dereference: ops. Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@linaro.org>
This commit is contained in:
parent
047bc5c755
commit
47e41631bb
1 changed files with 1 additions and 1 deletions
|
@ -766,7 +766,7 @@ void avb_ops_free(AvbOps *ops)
|
|||
{
|
||||
struct AvbOpsData *ops_data;
|
||||
|
||||
if (ops)
|
||||
if (!ops)
|
||||
return;
|
||||
|
||||
ops_data = ops->user_data;
|
||||
|
|
Loading…
Add table
Reference in a new issue