Staging: comedi: remove unnecessary braces in pcl711.c
authorChase Southwood <chase.southwood@yahoo.com>
Tue, 14 Jan 2014 03:13:16 +0000 (21:13 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 17:59:44 +0000 (09:59 -0800)
This patch for pcl711.c removes braces causing a checkpatch.pl warning.
It also removes an empty else arm of an if-else statement.

Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/pcl711.c

index f0fc123ef56603994e8338e67884283388cc80e4..659578881a4eacff3afd618ef4a2d740285267ba 100644 (file)
@@ -336,11 +336,8 @@ static int pcl711_ai_cmdtest(struct comedi_device *dev,
        err |= cfc_check_trigger_arg_is(&cmd->convert_arg, 0);
        err |= cfc_check_trigger_arg_is(&cmd->scan_end_arg, cmd->chanlist_len);
 
-       if (cmd->stop_src == TRIG_NONE) {
+       if (cmd->stop_src == TRIG_NONE)
                err |= cfc_check_trigger_arg_is(&cmd->stop_arg, 0);
-       } else {
-               /* ignore */
-       }
 
        if (err)
                return 3;