1. 09 7月, 2011 2 次提交
    • A
      gma500: Re-order checks and dereferences in psb_intel_lvds · d3cf695c
      Alan Cox 提交于
      Dan Carpenter reports:
      
      Smatch complains about 6a7afe3a "gma500: continue abstracting
      platform specific code"
      
      drivers/staging/gma500/psb_intel_lvds.c +579 psb_intel_lvds_set_property(7)
      	warn: variable dereferenced before check 'encoder'
      
      	--- a/drivers/staging/gma500/psb_intel_lvds.c
      	+++ b/drivers/staging/gma500/psb_intel_lvds.c
      	@@ -575,11 +575,12 @@ int psb_intel_lvds_set_property(struct drm_connector *connector,
      					       struct drm_property *property,
      					       uint64_t value)
      	 {
      	-       struct drm_encoder *pEncoder = connector->encoder;
      	+       struct drm_encoder *encoder = connector->encoder;
      	+       struct drm_psb_private *dev_priv = encoder->dev->dev_private;
      						   ^^^^^^^^^^^^
      dereference encoder here.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      d3cf695c
    • J
      gma500: strip unneeded version headers · fa3b1c88
      Jesper Juhl 提交于
      Remove unneeded version.h includes from drivers/staging/gma500/
      
      It was pointed out by 'make versioncheck' that some includes of
      linux/version.h are not needed in drivers/staging/gma500/.
      This patch removes them.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      [updated for all th file cleanup and movement]
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fa3b1c88
  2. 07 7月, 2011 3 次提交
  3. 06 7月, 2011 35 次提交