nb/intel/i945: Remove irrelevant conditional statement
After a {break,return}, "else" is generally not needed. Change-Id: Id55af179f63316f7218e93978628cbe05e94e0aa Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/29266 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
07065edd5e
commit
2a1c4302d1
|
@ -588,9 +588,9 @@ static u32 get_cdclk(struct device *const dev)
|
|||
{
|
||||
u16 gcfgc = pci_read_config16(dev, GCFGC);
|
||||
|
||||
if (gcfgc & GC_LOW_FREQUENCY_ENABLE) {
|
||||
if (gcfgc & GC_LOW_FREQUENCY_ENABLE)
|
||||
return 133333333;
|
||||
} else {
|
||||
|
||||
switch (gcfgc & GC_DISPLAY_CLOCK_MASK) {
|
||||
case GC_DISPLAY_CLOCK_333_320_MHZ:
|
||||
return 320000000;
|
||||
|
@ -599,7 +599,6 @@ static u32 get_cdclk(struct device *const dev)
|
|||
return 200000000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static u32 freq_to_blc_pwm_ctl(struct device *const dev, u16 pwm_freq)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue