diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-19 16:08:02 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-20 08:18:27 +0100 |
commit | b2a3b02392836b8cc0aa4246d7496028911f1539 (patch) | |
tree | 125bf1beb4e1d05af7420d60871acae86939210e /sound/usb/line6/pod.c | |
parent | ALSA: line6: Drop MISSING_CASE macro (diff) | |
download | linux-b2a3b02392836b8cc0aa4246d7496028911f1539.tar.xz linux-b2a3b02392836b8cc0aa4246d7496028911f1539.zip |
ALSA: line6: Remove CHECK_RETURN macro
Such a macro doesn't improve readability.
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/pod.c')
-rw-r--r-- | sound/usb/line6/pod.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sound/usb/line6/pod.c b/sound/usb/line6/pod.c index 6b30deb6b157..6f4b09982589 100644 --- a/sound/usb/line6/pod.c +++ b/sound/usb/line6/pod.c @@ -429,9 +429,15 @@ static int pod_create_files2(struct device *dev) { int err; - CHECK_RETURN(device_create_file(dev, &dev_attr_device_id)); - CHECK_RETURN(device_create_file(dev, &dev_attr_firmware_version)); - CHECK_RETURN(device_create_file(dev, &dev_attr_serial_number)); + err = device_create_file(dev, &dev_attr_device_id); + if (err < 0) + return err; + err = device_create_file(dev, &dev_attr_firmware_version); + if (err < 0) + return err; + err = device_create_file(dev, &dev_attr_serial_number); + if (err < 0) + return err; return 0; } |