diff options
author | Ian Abbott | 2015-03-27 16:13:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-04-03 13:11:53 +0200 |
commit | 38ee1fd309a629a618c031238c5d681ed4239af4 (patch) | |
tree | 156defdab97546dcdea2c9ef3914f50de7cacac8 /drivers/staging/comedi/comedi_fops.c | |
parent | staging: comedi: comedi_fops: eliminate a use of subdevice spin-lock (diff) | |
download | kernel-qcow2-linux-38ee1fd309a629a618c031238c5d681ed4239af4.tar.gz kernel-qcow2-linux-38ee1fd309a629a618c031238c5d681ed4239af4.tar.xz kernel-qcow2-linux-38ee1fd309a629a618c031238c5d681ed4239af4.zip |
staging: comedi: comedi_fops: simplify comedi_is_subdevice_idle()
Don't use a conditional operator when a simple "not" will do.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 17ac2858205d..9e49c8ac0cba 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c @@ -652,7 +652,7 @@ static bool comedi_is_subdevice_idle(struct comedi_subdevice *s) { unsigned runflags = comedi_get_subdevice_runflags(s); - return (runflags & COMEDI_SRF_BUSY_MASK) ? false : true; + return !(runflags & COMEDI_SRF_BUSY_MASK); } /** |