}
/* 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) {
return err;
}
- if ((ops) && (ops->release))
+ if (ops && ops->release)
ops->release(&t->fe);
kfree(t);
if (check_mode(t, cmd) == EINVAL) {
t->mode = T_STANDBY;
- if ((ops) && (ops->standby))
+ if (ops && ops->standby)
ops->standby(&t->fe);
return EINVAL;
}
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
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;
~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 */
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;
}
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;
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;
break;
}
case VIDIOC_LOG_STATUS:
- if ((ops) && (ops->tuner_status))
+ if (ops && ops->tuner_status)
ops->tuner_status(&t->fe);
break;
}