Mailinglist Archive: radeonhd (169 mails)
| < Previous | Next > |
[radeonhd] rhdAtomAllocateFbScratch()
- From: Russell Shaw <rjshaw@xxxxxxxxxxxxxxx>
- Date: Tue, 16 Sep 2008 23:36:58 +1000
- Message-id: <48CFB67A.60109@xxxxxxxxxxxxxxx>
In RHDPreInit(), there is this code:
atomBiosArg.fb.start = rhdPtr->FbFreeStart;
atomBiosArg.fb.size = rhdPtr->FbFreeSize;
if(RHDAtomBiosFunc(pScrn->scrnIndex, rhdPtr->atomBIOS,
ATOMBIOS_ALLOCATE_FB_SCRATCH, &atomBiosArg) == ATOM_SUCCESS)
{
rhdPtr->FbFreeStart = atomBiosArg.fb.start; // line 1
rhdPtr->FbFreeSize = atomBiosArg.fb.size; // line 2
}
From what i can see, atomBiosArg.fb.start/size are never modified
in rhdAtomAllocateFbScratch(), so line 1 and 2 are redundant.
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
atomBiosArg.fb.start = rhdPtr->FbFreeStart;
atomBiosArg.fb.size = rhdPtr->FbFreeSize;
if(RHDAtomBiosFunc(pScrn->scrnIndex, rhdPtr->atomBIOS,
ATOMBIOS_ALLOCATE_FB_SCRATCH, &atomBiosArg) == ATOM_SUCCESS)
{
rhdPtr->FbFreeStart = atomBiosArg.fb.start; // line 1
rhdPtr->FbFreeSize = atomBiosArg.fb.size; // line 2
}
From what i can see, atomBiosArg.fb.start/size are never modified
in rhdAtomAllocateFbScratch(), so line 1 and 2 are redundant.
--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx
| < Previous | Next > |