From: Lucas Stach Date: Fri, 5 Sep 2014 15:37:55 +0000 (-0600) Subject: PCI: designware: Check private_data validity in single place X-Git-Tag: omap-for-v3.19/prcm-cleanup~136^2~14^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84a263f39403ca3b399af77499876e02e634b00b;p=pandora-kernel.git 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 Signed-off-by: Bjorn Helgaas Acked-by: Jingoo Han Acked-by: Mohit Kumar --- Reading git-diff-tree failed