Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge: analogix-anx78xx: Remove duplicate NULL check

Since i2c_unregister_device() became NULL-aware we may remove duplicate
NULL check.

Cc: Archit Taneja <architt@codeaurora.org>
Cc: Andrzej Hajda <a.hajda@samsung.com>
Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171031142149.32512-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

authored by

Andy Shevchenko and committed by
Ville Syrjälä
0173bfd4 739ebf51

+1 -2
+1 -2
drivers/gpu/drm/bridge/analogix-anx78xx.c
··· 1301 1301 unsigned int i; 1302 1302 1303 1303 for (i = 0; i < ARRAY_SIZE(anx78xx->i2c_dummy); i++) 1304 - if (anx78xx->i2c_dummy[i]) 1305 - i2c_unregister_device(anx78xx->i2c_dummy[i]); 1304 + i2c_unregister_device(anx78xx->i2c_dummy[i]); 1306 1305 } 1307 1306 1308 1307 static const struct regmap_config anx78xx_regmap_config = {