diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-19 18:08:02 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-20 10:18:27 +0300 |
commit | b2a3b02392836b8cc0aa4246d7496028911f1539 (patch) | |
tree | 125bf1beb4e1d05af7420d60871acae86939210e /sound/usb/line6/toneport.c | |
parent | 10e3a023c97e67975812027c1a96db874be2e78d (diff) | |
download | linux-b2a3b02392836b8cc0aa4246d7496028911f1539.tar.xz |
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/toneport.c')
-rw-r--r-- | sound/usb/line6/toneport.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c index 3097a75a9bec..24544b7ab476 100644 --- a/sound/usb/line6/toneport.c +++ b/sound/usb/line6/toneport.c @@ -431,10 +431,12 @@ static int toneport_init(struct usb_interface *interface, line6_read_data(line6, 0x80c2, &toneport->firmware_version, 1); if (toneport_has_led(toneport->type)) { - CHECK_RETURN(device_create_file - (&interface->dev, &dev_attr_led_red)); - CHECK_RETURN(device_create_file - (&interface->dev, &dev_attr_led_green)); + err = device_create_file(&interface->dev, &dev_attr_led_red); + if (err < 0) + return err; + err = device_create_file(&interface->dev, &dev_attr_led_green); + if (err < 0) + return err; } toneport_setup(toneport); |