intel/apollolake: Fix logic error
commit831d65d0ba68be630e3c323e24e2be071456a9e8
authorPatrick Georgi <pgeorgi@chromium.org>
Thu, 14 Apr 2016 09:53:48 +0000 (14 11:53 +0200)
committerMartin Roth <martinroth@google.com>
Fri, 15 Apr 2016 14:26:39 +0000 (15 16:26 +0200)
tree894d8292f0c8971cab51d9597f6db5328a7d8c4b
parent17573035fd6832499a63523d4cd4f70a817a1460
intel/apollolake: Fix logic error

Testing dev->chip == NULL when dev == NULL doesn't make sense (and gcc
thinks that's undefined behavior which should be rewarded with a trap).

Change-Id: I801ce3d6b791fdf96b23333432dee394aa2e2ddf
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/14360
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
src/soc/intel/apollolake/chip.c