[PATCH] staging: media: davinci_vpfe: fix a potential null pointer dereference on vpfe_ipipe_init

2018-11-24 Thread wen yang
From: Wen Yang This patch fixes a possible null pointer dereference in do_load, detected by the semantic patch deref_null.cocci, with the following warning: drivers/staging/media/davinci_vpfe/dm365_ipipe.c:1846:25-30: ERROR: res is NULL but dereferenced. The following code has potential null

[PATCH] staging: rtl8723bs: remove redundant null check on pregpriv

2018-11-24 Thread wen yang
From: Wen Yang The null check on &padapter->registrypriv is redundant since registrypriv is a struct inside padapter and can never be null, so the check is always true. we may remove it. Signed-off-by: Wen Yang CC: de...@driverdev.osuosl.org CC: linux-ker...@vger.kernel.org ---