diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-12-05 02:56:24 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-12-05 02:56:55 +0100 |
commit | 1e55c176f8f503c7dccba6e2b237f26a065ff79c (patch) | |
tree | 78051113dd17e4c00f56a91eb1eeb23626695a04 /drivers/input/keyboard/snvs_pwrkey.c | |
parent | Input: snvs_pwrkey - send key events for i.MX6 S, DL and Q (diff) | |
download | linux-1e55c176f8f503c7dccba6e2b237f26a065ff79c.tar.xz linux-1e55c176f8f503c7dccba6e2b237f26a065ff79c.zip |
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 <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/20191125211407.GA97812@dtor-ws
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/snvs_pwrkey.c')
-rw-r--r-- | drivers/input/keyboard/snvs_pwrkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/keyboard/snvs_pwrkey.c b/drivers/input/keyboard/snvs_pwrkey.c index fd6f244f403d..2f5e3ab5ed63 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; |