Skip to content

Commit 1e55c17

Browse files
committed
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>
1 parent 1a26c92 commit 1e55c17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/input/keyboard/snvs_pwrkey.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ static void imx_snvs_pwrkey_act(void *pdata)
108108

109109
static int imx_snvs_pwrkey_probe(struct platform_device *pdev)
110110
{
111-
struct pwrkey_drv_data *pdata = NULL;
112-
struct input_dev *input = NULL;
111+
struct pwrkey_drv_data *pdata;
112+
struct input_dev *input;
113113
struct device_node *np;
114114
int error;
115115
u32 vid;

0 commit comments

Comments
 (0)