udevtrigger: reduce indent level in scan_* functions
authorGabor Juhos <juhosg@openwrt.org>
Tue, 10 Sep 2013 10:59:25 +0000 (12:59 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Sep 2013 11:25:35 +0000 (13:25 +0200)
commit824a4b3da2c0be19ccf54a48dcd4c10677b82c1a
treebfa009fa82beef07639535552fb82189c1aa7b14
parent782013924f28b9ebadfcd9d1719939bcc344c548
udevtrigger: reduce indent level in scan_* functions

Return early from the scan_* functions if the
opendir call fails. This allows to reduce the
indentation level of the subsequent code by
one tab.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
udevtrigger.c