From: Dmitry Torokhov Date: Thu, 5 Dec 2019 01:56:24 +0000 (-0800) Subject: Input: snvs_pwrkey - remove gratuitous NULL initializers X-Git-Tag: v5.15~74^2~107^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e55c176f8f503c7dccba6e2b237f26a065ff79c;p=platform%2Fkernel%2Flinux-starfive.git Input: snvs_pwrkey - remove gratuitous NULL initializers Gratuitous NULL initializers rarely help and often prevent compiler from warning about using uninitialized variable. Let's remove them. Reviewed-by: Anson Huang Link: https://lore.kernel.org/r/20191125211407.GA97812@dtor-ws Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/snvs_pwrkey.c b/drivers/input/keyboard/snvs_pwrkey.c index fd6f244..2f5e3ab 100644 --- a/drivers/input/keyboard/snvs_pwrkey.c +++ b/drivers/input/keyboard/snvs_pwrkey.c @@ -108,8 +108,8 @@ static void imx_snvs_pwrkey_act(void *pdata) static int imx_snvs_pwrkey_probe(struct platform_device *pdev) { - struct pwrkey_drv_data *pdata = NULL; - struct input_dev *input = NULL; + struct pwrkey_drv_data *pdata; + struct input_dev *input; struct device_node *np; int error; u32 vid;