summaryrefslogtreecommitdiffstats
path: root/drivers/spmi
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2014-09-05 09:37:55 -0600
committerBjorn Helgaas <bhelgaas@google.com>2014-09-05 09:37:55 -0600
commit84a263f39403ca3b399af77499876e02e634b00b (patch)
tree780101865be4d2e993a45a482df09feb64552d03 /drivers/spmi
parent8ddebc4103e6544bd31f0c97e55491387717a124 (diff)
downloadblackbird-op-linux-84a263f39403ca3b399af77499876e02e634b00b.tar.gz
blackbird-op-linux-84a263f39403ca3b399af77499876e02e634b00b.zip
PCI: designware: Check private_data validity in single place
The driver had checks for this sprinkled all over. As we call sys_to_pcie() before every instance of this check, we can move the check to this single location to make things clear. Removing the statements after BUG[_ON]() is safe as the kernel is halted at this point anyway. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Mohit Kumar <mohit.kumar@st.com>
Diffstat (limited to 'drivers/spmi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud