From: Colin King <hidden> Date: 2016-12-21 14:41:55
From: Colin Ian King <redacted>
rmi_dev is currently being dereferenced before it null checked,
however, after deeper inspecting, rmi_dev can never be null,
so just remove this redundant check. Thanks to Dmitry Torokhov for
noticing that we can remove the null check.
Fixes CoverityScan CID 1391218 ("Dereference before null check")
Signed-off-by: Colin Ian King <redacted>
---
drivers/input/rmi4/rmi_f03.c | 3 ---
1 file changed, 3 deletions(-)
@@ -175,9 +175,6 @@ static int rmi_f03_attention(struct rmi_function *fn, unsigned long *irq_bits)inti;interror;-if(!rmi_dev)-return-ENODEV;-if(drvdata->attn_data.data){/* First grab the data passed by the transport device */if(drvdata->attn_data.size<ob_len){
On Wed, Dec 21, 2016 at 02:41:04PM +0000, Colin King wrote:
From: Colin Ian King <redacted>
rmi_dev is currently being dereferenced before it null checked,
however, after deeper inspecting, rmi_dev can never be null,
so just remove this redundant check. Thanks to Dmitry Torokhov for
noticing that we can remove the null check.
Fixes CoverityScan CID 1391218 ("Dereference before null check")
Signed-off-by: Colin Ian King <redacted>
@@ -175,9 +175,6 @@ static int rmi_f03_attention(struct rmi_function *fn, unsigned long *irq_bits)inti;interror;-if(!rmi_dev)-return-ENODEV;-if(drvdata->attn_data.data){/* First grab the data passed by the transport device */if(drvdata->attn_data.size<ob_len){