Commit 1e2020aa authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: da7280 - fix missing error test

An "if" testing for error condition has accidentally been dropped from
the code.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: cd3f6098 ("Input: new da7280 haptic driver")
Reviewed-by: default avatarRoy Im <Roy.Im.Opensource@diasemi.com>
Link: https://lore.kernel.org/r/X9j8lGFgijzHyYZZ@google.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 92f0a3a2
...@@ -863,6 +863,7 @@ static void da7280_parse_properties(struct device *dev, ...@@ -863,6 +863,7 @@ static void da7280_parse_properties(struct device *dev,
gpi_str3[7] = '0' + i; gpi_str3[7] = '0' + i;
haptics->gpi_ctl[i].polarity = 0; haptics->gpi_ctl[i].polarity = 0;
error = device_property_read_string(dev, gpi_str3, &str); error = device_property_read_string(dev, gpi_str3, &str);
if (!error)
haptics->gpi_ctl[i].polarity = haptics->gpi_ctl[i].polarity =
da7280_haptic_of_gpi_pol_str(dev, str); da7280_haptic_of_gpi_pol_str(dev, str);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment