staging: iio: frequency: Remove explicit comparisons

Remove comparisons to 0 or NULL

Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Cristina Moraru 2015-10-20 22:55:44 +03:00 committed by Greg Kroah-Hartman
parent e6e65f97db
commit 97deb1bc11
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ static ssize_t ad9834_write(struct device *dev,
break;
case AD9834_FSEL:
case AD9834_PSEL:
if (val == 0) {
if (!val) {
st->control &= ~(this_attr->address | AD9834_PIN_SW);
} else if (val == 1) {
st->control |= this_attr->address;