mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
EDAC, sb_edac: Remove NULL pointer check on array pci_tad
pvt->pci_tad is a NUM_CHANNELS array of struct pci_dev pointers and hence cannot be NULL, so the NULL pointer check on pci_tad is redundant. Remove it. Signed-off-by: Colin Ian King <[email protected]> Acked-by: Tony Luck <[email protected]> Cc: linux-edac <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Borislav Petkov <[email protected]>
This commit is contained in:
parent
372095723a
commit
c7c35407cd
1 changed files with 2 additions and 3 deletions
|
|
@ -2474,7 +2474,7 @@ static int sbridge_mci_bind_devs(struct mem_ctl_info *mci,
|
|||
|
||||
/* Check if everything were registered */
|
||||
if (!pvt->pci_sad0 || !pvt->pci_sad1 || !pvt->pci_ha0 ||
|
||||
!pvt-> pci_tad || !pvt->pci_ras || !pvt->pci_ta)
|
||||
!pvt->pci_ras || !pvt->pci_ta)
|
||||
goto enodev;
|
||||
|
||||
if (saw_chan_mask != 0x0f)
|
||||
|
|
@ -2563,8 +2563,7 @@ static int ibridge_mci_bind_devs(struct mem_ctl_info *mci,
|
|||
|
||||
/* Check if everything were registered */
|
||||
if (!pvt->pci_sad0 || !pvt->pci_ha0 || !pvt->pci_br0 ||
|
||||
!pvt->pci_br1 || !pvt->pci_tad || !pvt->pci_ras ||
|
||||
!pvt->pci_ta)
|
||||
!pvt->pci_br1 || !pvt->pci_ras || !pvt->pci_ta)
|
||||
goto enodev;
|
||||
|
||||
if (saw_chan_mask != 0x0f && /* -EN */
|
||||
|
|
|
|||
Loading…
Reference in a new issue