cmd: sata: add null pointer check for dev
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 1 Feb 2019 15:01:08 +0000 (16:01 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 9 Feb 2019 12:51:00 +0000 (07:51 -0500)
commitb3860bfe779f71708f380392ef195e137981d7ad
tree857f40b8a79634e8bb938ec206f8beae009032b4
parentf3885649657b4dfb669ae4505a0516c3affb8694
cmd: sata: add null pointer check for dev

Calling sata_scan() with a null pointer probably won't make much sense.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/sata.c