Commit 32bc3b34 authored by Federico Vaga's avatar Federico Vaga

drv: remove superfluous operation

zero_offset[0] is set to 0 before the loop, so subtracting 0 to any
value does not change it.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 736d8971
......@@ -131,8 +131,7 @@ int ft_handle_eeprom_calibration(struct fmctdc_dev *ft)
calib->zero_offset[0] = 0;
for (i = FT_CH_1 + 1; i < FT_NUM_CHANNELS; i++)
calib->zero_offset[i] =
le32_to_cpu(raw_calib[i - 1]) / 100
- calib->zero_offset[0];
le32_to_cpu(raw_calib[i - 1]) / 100;
calib->vcxo_default_tune = le32_to_cpu(raw_calib[4]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment