mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 02:39:46 +07:00
media: sti/delta: remove uneeded check
At the error logic, ipc_buf was already asigned to &ctx->ipc_buf_struct, with can't be null, as warned by smatch: drivers/media/platform/sti/delta/delta-ipc.c:223 delta_ipc_open() warn: variable dereferenced before check 'ctx->ipc_buf' (see line 183) So, remove the uneeded check. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
4f777d011b
commit
1021cd5677
@ -220,10 +220,8 @@ int delta_ipc_open(struct delta_ctx *pctx, const char *name,
|
||||
|
||||
err:
|
||||
pctx->sys_errors++;
|
||||
if (ctx->ipc_buf) {
|
||||
hw_free(pctx, ctx->ipc_buf);
|
||||
ctx->ipc_buf = NULL;
|
||||
}
|
||||
hw_free(pctx, ctx->ipc_buf);
|
||||
ctx->ipc_buf = NULL;
|
||||
|
||||
return ret;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user