i2c: scmi: remove some bogus NULL checks
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 19 Oct 2013 08:46:22 +0000 (11:46 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 1 Nov 2013 13:09:53 +0000 (14:09 +0100)
commite55fea0c50452449403bc8645fa3a6205dd74547
treefa3ad7f91d4455fc152185a6aa10fb3061539ce4
parent5edb1062e54cffe84b0bfa9ffdfdad337e635d7d
i2c: scmi: remove some bogus NULL checks

"obj" can't be NULL here.

We already know that "pkg->package.elements" gives us a valid pointer
so the next pointer after that is also non-NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-scmi.c