projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5771a8c
)
spi: core: Propagate error code of add_uevent_var()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Wed, 26 Jul 2017 13:14:00 +0000
(16:14 +0300)
committer
Mark Brown
<broonie@kernel.org>
Wed, 26 Jul 2017 14:30:35 +0000
(15:30 +0100)
add_uevent_var() can fail, let caller know about this.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi.c
b/drivers/spi/spi.c
index 4fcbb0aa71d361e4e5e50600a2d14a7722e22034..fe7bba9241ea41f2e0872dd897ddbda92b07cbf3 100644
(file)
--- a/
drivers/spi/spi.c
+++ b/
drivers/spi/spi.c
@@
-321,8
+321,7
@@
static int spi_uevent(struct device *dev, struct kobj_uevent_env *env)
if (rc != -ENODEV)
return rc;
- add_uevent_var(env, "MODALIAS=%s%s", SPI_MODULE_PREFIX, spi->modalias);
- return 0;
+ return add_uevent_var(env, "MODALIAS=%s%s", SPI_MODULE_PREFIX, spi->modalias);
}
struct bus_type spi_bus_type = {