mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: xgifb: Compress return logic into one line.
Simplify return logic to avoid unnecessary variable assignments. Coccinelle was used with this semantic patch: @@ local idexpression ret; expression e; @@ -ret = +return e; -return ret; Signed-off-by: Elise Lennion <elise.lennion@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ce439c425b
commit
dcb9360e66
@ -1682,13 +1682,11 @@ static unsigned char XGI_GetVCLKPtr(unsigned short RefreshRateTableIndex,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pVBInfo->TVInfo & TVSetYPbPr750p) {
|
if (pVBInfo->TVInfo & TVSetYPbPr750p) {
|
||||||
tempal = XGI_YPbPr750pVCLK;
|
return XGI_YPbPr750pVCLK;
|
||||||
return tempal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pVBInfo->TVInfo & TVSetYPbPr525p) {
|
if (pVBInfo->TVInfo & TVSetYPbPr525p) {
|
||||||
tempal = YPbPr525pVCLK;
|
return YPbPr525pVCLK;
|
||||||
return tempal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tempal = NTSC1024VCLK;
|
tempal = NTSC1024VCLK;
|
||||||
@ -1705,8 +1703,7 @@ static unsigned char XGI_GetVCLKPtr(unsigned short RefreshRateTableIndex,
|
|||||||
} /* {End of VB} */
|
} /* {End of VB} */
|
||||||
|
|
||||||
inb((pVBInfo->P3ca + 0x02));
|
inb((pVBInfo->P3ca + 0x02));
|
||||||
tempal = XGI330_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK;
|
return XGI330_RefIndex[RefreshRateTableIndex].Ext_CRTVCLK;
|
||||||
return tempal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void XGI_GetVCLKLen(unsigned char tempal, unsigned char *di_0,
|
static void XGI_GetVCLKLen(unsigned char tempal, unsigned char *di_0,
|
||||||
|
Loading…
Reference in New Issue
Block a user