mtd: sst25l: check for null consistently
authorDan Carpenter <error27@gmail.com>
Sat, 22 May 2010 20:16:26 +0000 (22:16 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 2 Aug 2010 08:00:45 +0000 (09:00 +0100)
commita4b81ca50974051195b11ca173da073b961f94d5
treee7385da899666b2b2f0976dc2b76599a33b928af
parent00b275dbfc2ae3e3312a910736dd9a6bd5110c2b
mtd: sst25l: check for null consistently

The rest of the function assumes that "data" can be null.  I don't know
the code well enough to say whether it can actually be null, but there
is no harm in checking here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/sst25l.c