All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: [nouveau:master 1/80] nouveau_connector.c:535 nouveau_connector_set_property() warn: variable derefe
Date: Wed, 19 Sep 2012 00:46:05 +0000	[thread overview]
Message-ID: <20120919004605.GA10838@localhost> (raw)

Hi Ben,

FYI, a pretty old smatch warning:

drivers/gpu/drm/nouveau/nouveau_connector.c:535 nouveau_connector_set_property() warn: variable dereferenced before check 'nv_encoder' (see line 413)

vim +535 drivers/gpu/drm/nouveau/nouveau_connector.c
   412         struct nouveau_encoder *nv_encoder = nv_connector->detected_encoder;
   413         struct drm_encoder *encoder = to_drm_encoder(nv_encoder);
...
   534	
 > 535		if (nv_encoder && nv_encoder->dcb->type = OUTPUT_TV)
   536			return get_slave_funcs(encoder)->set_property(
   537				encoder, connector, property, value);
   538	
   539		return -EINVAL;
   540	}

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

                 reply	other threads:[~2012-09-19  0:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120919004605.GA10838@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.