summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-22 17:03:29 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-10-22 17:03:29 -0400
commit1c249f720732658d2c39deefcbc5eadd4d81e8bb (patch)
tree0070a8ec22adfd23e7904c76759f296ec9b89dba /linux/drivers/media/video/tuner-core.c
parentf206890c29c965f6ef422b318895e11c4039800a (diff)
downloadmediapointer-dvb-s2-1c249f720732658d2c39deefcbc5eadd4d81e8bb.tar.gz
mediapointer-dvb-s2-1c249f720732658d2c39deefcbc5eadd4d81e8bb.tar.bz2
tuner-core: remove excessive parenthesis
From: Michael Krufky <mkrufky@linuxtv.org> Convert all instances of "if ((ops) && (ops->foo))" to "if (ops && ops->foo)" Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-core.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-)
Diffstat (limited to 'linux/drivers/media/video/tuner-core.c')
-rw-r--r--linux/drivers/media/video/tuner-core.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index e78a5c43e..f04c53631 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -306,7 +306,7 @@ static void set_type(struct i2c_client *c, unsigned int type,
#endif
/* discard private data, in case set_type() was previously called */
- if ((ops) && (ops->release))
+ if (ops && ops->release)
ops->release(&t->fe);
switch (t->type) {
@@ -779,7 +779,7 @@ static int tuner_detach(struct i2c_client *client)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
MOD_DEC_USE_COUNT;
#endif
- if ((ops) && (ops->release))
+ if (ops && ops->release)
ops->release(&t->fe);
kfree(t);
@@ -804,7 +804,7 @@ static inline int set_mode(struct i2c_client *client, struct tuner *t, int mode,
if (check_mode(t, cmd) == EINVAL) {
t->mode = T_STANDBY;
- if ((ops) && (ops->standby))
+ if (ops && ops->standby)
ops->standby(&t->fe);
return EINVAL;
}
@@ -861,7 +861,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
if (check_mode(t, "TUNER_SET_STANDBY") == EINVAL)
return 0;
t->mode = T_STANDBY;
- if ((ops) && (ops->standby))
+ if (ops && ops->standby)
ops->standby(&t->fe);
break;
#ifdef CONFIG_VIDEO_V4L1
@@ -930,7 +930,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
else
vt->flags &= ~VIDEO_TUNER_STEREO_ON;
} else {
- if ((ops) && (ops->is_stereo)) {
+ if (ops && ops->is_stereo) {
if (ops->is_stereo(&t->fe))
vt->flags |=
VIDEO_TUNER_STEREO_ON;
@@ -939,7 +939,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
~VIDEO_TUNER_STEREO_ON;
}
}
- if ((ops) && (ops->has_signal))
+ if (ops && ops->has_signal)
vt->signal = ops->has_signal(&t->fe);
vt->flags |= VIDEO_TUNER_LOW; /* Allow freqs at 62.5 Hz */
@@ -970,7 +970,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
fe_tuner_ops->get_status(&t->fe, &tuner_status);
va->mode = (tuner_status & TUNER_STATUS_STEREO)
? VIDEO_SOUND_STEREO : VIDEO_SOUND_MONO;
- } else if ((ops) && (ops->is_stereo))
+ } else if (ops && ops->is_stereo)
va->mode = ops->is_stereo(&t->fe)
? VIDEO_SOUND_STEREO : VIDEO_SOUND_MONO;
}
@@ -1061,7 +1061,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
switch_v4l2();
tuner->type = t->mode;
- if ((ops) && (ops->get_afc))
+ if (ops && ops->get_afc)
tuner->afc = ops->get_afc(&t->fe);
if (t->mode == V4L2_TUNER_ANALOG_TV)
tuner->capability |= V4L2_TUNER_CAP_NORM;
@@ -1083,14 +1083,14 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
V4L2_TUNER_SUB_STEREO :
V4L2_TUNER_SUB_MONO;
} else {
- if ((ops) && (ops->is_stereo)) {
+ if (ops && ops->is_stereo) {
tuner->rxsubchans =
ops->is_stereo(&t->fe) ?
V4L2_TUNER_SUB_STEREO :
V4L2_TUNER_SUB_MONO;
}
}
- if ((ops) && (ops->has_signal))
+ if (ops && ops->has_signal)
tuner->signal = ops->has_signal(&t->fe);
tuner->capability |=
V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO;
@@ -1116,7 +1116,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
break;
}
case VIDIOC_LOG_STATUS:
- if ((ops) && (ops->tuner_status))
+ if (ops && ops->tuner_status)
ops->tuner_status(&t->fe);
break;
}