hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
....@@ -1,8 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2010 Red Hat Inc.
34 * Author : Dave Airlie <airlied@redhat.com>
4
- *
5
- * Licensed under GPLv2
65 *
76 * ATPX support for both Intel/ATI
87 */
....@@ -617,7 +616,7 @@
617616 while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) {
618617 vga_count++;
619618
620
- has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true);
619
+ has_atpx |= amdgpu_atpx_pci_probe_handle(pdev);
621620
622621 parent_pdev = pci_upstream_bridge(pdev);
623622 d3_supported |= parent_pdev && parent_pdev->bridge_d3;
....@@ -627,7 +626,7 @@
627626 while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_OTHER << 8, pdev)) != NULL) {
628627 vga_count++;
629628
630
- has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true);
629
+ has_atpx |= amdgpu_atpx_pci_probe_handle(pdev);
631630
632631 parent_pdev = pci_upstream_bridge(pdev);
633632 d3_supported |= parent_pdev && parent_pdev->bridge_d3;