The check is not necessary since driver_attach should return 0 always. Signed-off-by: Ming Lei <ming....@canonical.com> --- include/linux/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/device.h b/include/linux/device.h index 7222c0b..dbb5efd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -858,7 +858,7 @@ static inline void *dev_get_platdata(const struct device *dev) extern int __must_check device_bind_driver(struct device *dev); extern void device_release_driver(struct device *dev); extern int __must_check device_attach(struct device *dev); -extern int __must_check driver_attach(struct device_driver *drv); +extern int driver_attach(struct device_driver *drv); extern int __must_check device_reprobe(struct device *dev); /* -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/