Skip to content
Commit 96762882 authored by Dan Carpenter's avatar Dan Carpenter Committed by Alex Williamson
Browse files

VFIO: platform: reset: fix a warning message condition

This loop ends with count set to -1 and not zero so the warning message
isn't printed when it should be.  I've fixed this by change the postop
to a preop.

Fixes: 0990822c

 ('VFIO: platform: reset: AMD xgbe reset module')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarEric Auger <eric.auger@linaro.org>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 4ef76753
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment