fsi: sbefifo: Fix checker warning about late NULL check
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 12 Jul 2018 01:53:37 +0000 (11:53 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 12 Jul 2018 01:53:37 +0000 (11:53 +1000)
commitd5c66e61e7fee82c50c04af8b69c1b88ce173b95
tree22957751068487f368d0bcd1256bada193a67f49
parent32f7f89d3065d950a3524c91f4031acc129195cc
fsi: sbefifo: Fix checker warning about late NULL check

"dev" is dereferences before it's checked.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/fsi/fsi-sbefifo.c