s390/ap: function rework based on compiler warning
authorHarald Freudenberger <freude@linux.ibm.com>
Wed, 20 Oct 2021 14:14:11 +0000 (16:14 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 26 Oct 2021 13:21:30 +0000 (15:21 +0200)
commit132c1e74aa7f8f9d33552645d2c35d3d8f9f0cf1
tree1c13496d73afd6b749a1ab926de2a178097c77be
parentad9a14517263a16af040598c7920c09ca9670a31
s390/ap: function rework based on compiler warning

Slight rework of function __ap_revise_reserved()
because of unused variable warning when build with W=1.
This patch introduces an additional debug feature warning
message when device_reprobe() returns with failure.
However, the return value of __ap_revise_reserved()
is still hard coded to 0 as this is a callback function
to be used together with bus_for_each_dev() and thus
the return value indicates to go on with the
bus_for_each_dev() loop and not apport on a failure
of something within this function.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/ap_bus.c