Skip to content

Commit d392e1b

Browse files
zehortigozarodrigovivi
authored andcommitted
drm/i915: Do not print 'pxp init failed with 0' when it succeed
It is misleading, if the intention was to also print something in case it succeed it should have a different string. Cc: Alan Previn <[email protected]> Signed-off-by: José Roberto de Souza <[email protected]> Fixes: 698e19d ("drm/i915: Skip pxp init if gt is wedged") Reviewed-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit d437099) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent e41d769 commit d392e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/i915_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ int i915_driver_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
800800
goto out_cleanup_modeset2;
801801

802802
ret = intel_pxp_init(i915);
803-
if (ret != -ENODEV)
803+
if (ret && ret != -ENODEV)
804804
drm_dbg(&i915->drm, "pxp init failed with %d\n", ret);
805805

806806
ret = intel_display_driver_probe(i915);

0 commit comments

Comments
 (0)