]> git.baikalelectronics.ru Git - kernel.git/commitdiff
usb: gadget: f_uac1: fixing inconsistent indenting
authorPavel Hofman <pavel.hofman@ivitera.com>
Tue, 17 Aug 2021 10:05:55 +0000 (12:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Aug 2021 13:33:02 +0000 (15:33 +0200)
Fixing inconsistent indenting identified by kernel test
robot.

Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Acked-By: Felipe Balbi <balbi@kernel.org>
Link: https://lore.kernel.org/r/20210817100555.4437-1-pavel.hofman@ivitera.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uac1.c

index 3b3db1a8df75166c9415609c2182771a62f29a6c..5b3502df4e13cd7ef3c8980ef4281ebbd9ae7718 100644 (file)
@@ -1084,24 +1084,24 @@ static int f_audio_validate_opts(struct g_audio *audio, struct device *dev)
 
        if (opts->p_volume_max <= opts->p_volume_min) {
                dev_err(dev, "Error: incorrect playback volume max/min\n");
-                       return -EINVAL;
+               return -EINVAL;
        } else if (opts->c_volume_max <= opts->c_volume_min) {
                dev_err(dev, "Error: incorrect capture volume max/min\n");
-                       return -EINVAL;
+               return -EINVAL;
        } else if (opts->p_volume_res <= 0) {
                dev_err(dev, "Error: negative/zero playback volume resolution\n");
-                       return -EINVAL;
+               return -EINVAL;
        } else if (opts->c_volume_res <= 0) {
                dev_err(dev, "Error: negative/zero capture volume resolution\n");
-                       return -EINVAL;
+               return -EINVAL;
        }
 
        if ((opts->p_volume_max - opts->p_volume_min) % opts->p_volume_res) {
                dev_err(dev, "Error: incorrect playback volume resolution\n");
-                       return -EINVAL;
+               return -EINVAL;
        } else if ((opts->c_volume_max - opts->c_volume_min) % opts->c_volume_res) {
                dev_err(dev, "Error: incorrect capture volume resolution\n");
-                       return -EINVAL;
+               return -EINVAL;
        }
 
        return 0;