Re: [PATCH] staging: kpc2000: simplify error handling in kp2000_pcie_probe

From: Dan Carpenter
Date: Wed Jun 19 2019 - 02:59:40 EST


On Wed, Jun 19, 2019 at 08:36:07AM +0200, Simon Sandström wrote:
> We can get rid of a few iounmaps in the middle of the function by
> re-ordering the error handling labels and adding two new labels.
>
> Signed-off-by: Simon Sandström <simon@xxxxxxxxxx>
> ---
>
> This change has not been tested besides by compiling. It might be good
> took take an extra look to make sure that I got everything right.
>

You have the right instincts that when something looks really
complicated that's probably for a reason. That attitude will serve you
well in the future! But in this case it's staging code so the original
code is just strange.

Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

> Also, this change was proposed by Dan Carpenter. Should I add anything
> in the commit message to show this?

There is a Suggested-by: tag for this, but don't resend because I don't
care and I've already reviewed this version so I don't want to review
the patch again.

regards,
dan carpenter