Re: [PATCH 2/4] PCI: add functionality for resizing resources v3

From: Christian KÃnig
Date: Thu May 04 2017 - 05:23:54 EST


Am 26.04.2017 um 19:00 schrieb Andy Shevchenko:
[SNIP]
+ while (1) {
This raises red flag. Care to refactor?
Also do {} while () syntax allows faster to get that the loop body
goes at least once.

I've tried to refactor this, but couldn't come up with something which works and is readable at the same time.

Any suggestion how this should look like?

Christian.