sysfs: Avoid if and return on the same line