Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: Drop dummy variable

Now that bus_for_each_drv() is no longer __must_check, we can drop the
dummy variable that was used to store the returned value.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Justin P. Mattock <justinmattock@gmail.com>

+2 -3
+2 -3
drivers/i2c/i2c-core.c
··· 789 789 790 790 static int i2c_register_adapter(struct i2c_adapter *adap) 791 791 { 792 - int res = 0, dummy; 792 + int res = 0; 793 793 794 794 /* Can't register until after driver model init */ 795 795 if (unlikely(WARN_ON(!i2c_bus_type.p))) { ··· 830 830 831 831 /* Notify drivers */ 832 832 mutex_lock(&core_lock); 833 - dummy = bus_for_each_drv(&i2c_bus_type, NULL, adap, 834 - __process_new_adapter); 833 + bus_for_each_drv(&i2c_bus_type, NULL, adap, __process_new_adapter); 835 834 mutex_unlock(&core_lock); 836 835 837 836 return 0;