Skip to content

Commit

Permalink
Input: snvs_pwrkey - remove gratuitous NULL initializers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov committed Dec 5, 2019
1 parent 1a26c92 commit 1e55c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/keyboard/snvs_pwrkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e55c17

Please sign in to comment.