• Alex Chiang's avatar
    PCI Hotplug: cpqphp: refactor cpqhp_probe · 867556fe
    Alex Chiang authored
    Apply DeMorgan's theorem:
    
    	if ((pdev->revision > 2) || (vendor_id == PCI_VENDOR_ID_INTEL))
    
    turns into
    
    	if ((pdev->revision <= 2) && (vendor_id != PCI_VENDOR_ID_INTEL))
    
    Now we can bail out early from the function if the controller is not
    supported.
    
    This allows us to un-indent the remainder of the function quite a bit and
    make it much more readable.
    
    Fix up some extra braces, and un-indent the 'case' labels in the switch
    statement as per CodingStyle.
    
    No functional change.
    Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
    Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
    867556fe
cpqphp_core.c 36.8 KB