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

zorro: Use zorro_match_device() helper in zorro_bus_match()

Make zorro_bus_match() use the existing zorro_match_device() helper,
instead of open-coding the same operation.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200112164949.20196-4-geert@linux-m68k.org

+1 -6
+1 -6
drivers/zorro/zorro-driver.c
··· 133 133 if (!ids) 134 134 return 0; 135 135 136 - while (ids->id) { 137 - if (ids->id == ZORRO_WILDCARD || ids->id == z->id) 138 - return 1; 139 - ids++; 140 - } 141 - return 0; 136 + return !!zorro_match_device(ids, z); 142 137 } 143 138 144 139 static int zorro_uevent(struct device *dev, struct kobj_uevent_env *env)