From 8a075c61233435391ead45dedbc18e448075feff Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 27 Sep 2010 19:15:13 +0000 Subject: [PATCH] drop an unnecessary 'stack' --- lib/device/dev-io.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index f4d6648c5..1995bdead 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -210,8 +210,10 @@ static int _aligned_io(struct device_area *where, void *buffer, (size_t) where->size); /* ... then we write */ - r = _io(&widened, bounce, 1); - goto_out; + if (!(r = _io(&widened, bounce, 1))) + stack; + + goto out; } memcpy(buffer, bounce + (where->start - widened.start), -- 2.43.5