Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 i915_drm_resume_early: i...



details:   https://anonhg.NetBSD.org/src/rev/47e93c5bafd4
branches:  trunk
changeset: 1029090:47e93c5bafd4
user:      tnn <tnn%NetBSD.org@localhost>
date:      Tue Dec 21 11:44:18 2021 +0000

description:
i915_drm_resume_early: initialize ret

clang -Wsometimes-uninitialized says uninitialized use
on line 2043 when if statement on line 2037 is false

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 36b9f32d0a4c -r 47e93c5bafd4 sys/external/bsd/drm2/dist/drm/i915/i915_drv.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Tue Dec 21 11:07:51 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_drv.c    Tue Dec 21 11:44:18 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_drv.c,v 1.46 2021/12/19 12:40:43 riastradh Exp $  */
+/*     $NetBSD: i915_drv.c,v 1.47 2021/12/21 11:44:18 tnn Exp $        */
 
 /* i915_drv.c -- i830,i845,i855,i865,i915 driver -*- linux-c -*-
  */
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.46 2021/12/19 12:40:43 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_drv.c,v 1.47 2021/12/21 11:44:18 tnn Exp $");
 
 #include <linux/acpi.h>
 #include <linux/device.h>
@@ -1983,7 +1983,7 @@
 #ifndef __NetBSD__
        struct pci_dev *pdev = dev_priv->drm.pdev;
 #endif
-       int ret;
+       int ret = 0;
 
        /*
         * We have a resume ordering issue with the snd-hda driver also



Home | Main Index | Thread Index | Old Index