mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
After r278004 was committed, Bruce Evans noted that the casts were
actually completely unnecessary, here: https://lists.freebsd.org/pipermail/svn-src-all/2015-February/098478.html Remove the casts, and just assign &xxx_io_mc_regs[0][0] directly. Reviewed by: dumbbell MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D1748
This commit is contained in:
parent
07e765cd81
commit
a6ebe06637
2 changed files with 7 additions and 7 deletions
|
|
@ -190,23 +190,23 @@ int ni_mc_load_microcode(struct radeon_device *rdev)
|
|||
|
||||
switch (rdev->family) {
|
||||
case CHIP_BARTS:
|
||||
io_mc_regs = (const u32 *)&barts_io_mc_regs;
|
||||
io_mc_regs = &barts_io_mc_regs[0][0];
|
||||
ucode_size = BTC_MC_UCODE_SIZE;
|
||||
regs_size = BTC_IO_MC_REGS_SIZE;
|
||||
break;
|
||||
case CHIP_TURKS:
|
||||
io_mc_regs = (const u32 *)&turks_io_mc_regs;
|
||||
io_mc_regs = &turks_io_mc_regs[0][0];
|
||||
ucode_size = BTC_MC_UCODE_SIZE;
|
||||
regs_size = BTC_IO_MC_REGS_SIZE;
|
||||
break;
|
||||
case CHIP_CAICOS:
|
||||
default:
|
||||
io_mc_regs = (const u32 *)&caicos_io_mc_regs;
|
||||
io_mc_regs = &caicos_io_mc_regs[0][0];
|
||||
ucode_size = BTC_MC_UCODE_SIZE;
|
||||
regs_size = BTC_IO_MC_REGS_SIZE;
|
||||
break;
|
||||
case CHIP_CAYMAN:
|
||||
io_mc_regs = (const u32 *)&cayman_io_mc_regs;
|
||||
io_mc_regs = &cayman_io_mc_regs[0][0];
|
||||
ucode_size = CAYMAN_MC_UCODE_SIZE;
|
||||
regs_size = BTC_IO_MC_REGS_SIZE;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -190,18 +190,18 @@ static int si_mc_load_microcode(struct radeon_device *rdev)
|
|||
|
||||
switch (rdev->family) {
|
||||
case CHIP_TAHITI:
|
||||
io_mc_regs = (const u32 *)&tahiti_io_mc_regs;
|
||||
io_mc_regs = &tahiti_io_mc_regs[0][0];
|
||||
ucode_size = SI_MC_UCODE_SIZE;
|
||||
regs_size = TAHITI_IO_MC_REGS_SIZE;
|
||||
break;
|
||||
case CHIP_PITCAIRN:
|
||||
io_mc_regs = (const u32 *)&pitcairn_io_mc_regs;
|
||||
io_mc_regs = &pitcairn_io_mc_regs[0][0];
|
||||
ucode_size = SI_MC_UCODE_SIZE;
|
||||
regs_size = TAHITI_IO_MC_REGS_SIZE;
|
||||
break;
|
||||
case CHIP_VERDE:
|
||||
default:
|
||||
io_mc_regs = (const u32 *)&verde_io_mc_regs;
|
||||
io_mc_regs = &verde_io_mc_regs[0][0];
|
||||
ucode_size = SI_MC_UCODE_SIZE;
|
||||
regs_size = TAHITI_IO_MC_REGS_SIZE;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue