Re: [PATCH 08/10] mmc: block: respect bool returned from blk_end_request()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[...]

>
>  static void mmc_blk_rw_cmd_abort(struct mmc_card *card, struct request *req)
>  {
> -       int ret = 1;
> -
>         if (mmc_card_removed(card))
>                 req->rq_flags |= RQF_QUIET;
> -       while (ret)
> -               ret = blk_end_request(req, -EIO,
> -                                     blk_rq_cur_bytes(req));
> +       while (blk_end_request(req, -EIO, blk_rq_cur_bytes(req)))
> +       {
> +       }

These brackets isn't needed, so am going to change this before applying.

while (blk_end_request(req, -EIO, blk_rq_cur_bytes(req)));

[...]

Kind regards
Uffe
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux