powerpc/sstep: Return directly after a failed address_ok() in emulate_step()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 21 Jan 2017 14:30:15 +0000 (15:30 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Jan 2017 02:34:21 +0000 (13:34 +1100)
commit3c4b66a6d0d2b9f2418f9a09d528e42e2dc18acf
tree0287d8abb895bc55b1f84cf10189c912ee12ed88
parent8b2577832100706124fd6fe09f887992c8d7c0c6
powerpc/sstep: Return directly after a failed address_ok() in emulate_step()

Setting err and going to ldst_done just returns 0, without using err, so
just return 0 directly. We already do that for other call sites in this
function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
[mpe: Rewrite change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c