Staging: BCM2835-Audio: bcm2835-pcm: single line block statement braces fix
authorDaniel Perez de Andres <danielperezdeandres@gmail.com>
Fri, 17 Feb 2017 09:18:19 +0000 (10:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:02 +0000 (09:17 +0100)
A single line statement under an if clause doesn't require braces {}

Signed-off-by: Daniel Perez de Andres <danielperezdeandres@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm2835-audio/bcm2835-pcm.c

index 16127e0..9e79236 100644 (file)
@@ -317,9 +317,9 @@ static int snd_bcm2835_pcm_prepare(struct snd_pcm_substream *substream)
        err = bcm2835_audio_set_params(alsa_stream, channels,
                alsa_stream->params_rate,
                alsa_stream->pcm_format_width);
-       if (err < 0) {
+       if (err < 0)
                audio_error(" error setting hw params\n");
-       }
+
 
        bcm2835_audio_setup(alsa_stream);