mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
gpio: stmpe: Delete an unnecessary variable initialisation in stmpe_gpio_probe()
The local variable "irq" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
757ad058da
commit
0f7192318b
1 changed files with 1 additions and 2 deletions
|
|
@ -432,8 +432,7 @@ static int stmpe_gpio_probe(struct platform_device *pdev)
|
|||
struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent);
|
||||
struct device_node *np = pdev->dev.of_node;
|
||||
struct stmpe_gpio *stmpe_gpio;
|
||||
int ret;
|
||||
int irq = 0;
|
||||
int ret, irq;
|
||||
|
||||
stmpe_gpio = kzalloc(sizeof(*stmpe_gpio), GFP_KERNEL);
|
||||
if (!stmpe_gpio)
|
||||
|
|
|
|||
Loading…
Reference in a new issue