mtd: mxc-nand: no need to check for validity of platform driver data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 11 Jan 2010 14:05:35 +0000 (15:05 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 25 Feb 2010 11:28:06 +0000 (11:28 +0000)
commitb840bc11b5062803c204d8a9625a1a1c5812d6d6
tree8d082b6b3846b3dbaafa6f347957cf41137c8f20
parent17fabf156507ec0f688f1e58be02f38e04de0c6e
mtd: mxc-nand: no need to check for validity of platform driver data

The probe function calls platform_set_drvdata with a valid pointer when
the probe is successful.  As mxcnd_suspend and mxcnd_resume are only
called on bound devices, platform_get_drvdata always returns non-NULL.

This fix isn't critical as the pointer is always valid so it doesn't
matter if the compiler generated code for it or not.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c