[dm-devel] [PATCH] libmultipath: remove unnecessary condition in checker_repair

Christophe Varoqui christophe.varoqui at opensvc.com
Sun Nov 20 13:37:33 UTC 2016


Merged,
thanks.

On Mon, Nov 7, 2016 at 9:57 AM, <peng.liang5 at zte.com.cn> wrote:

> From: PengLiang <peng.liang5 at zte.com.cn>
>
> The checker's validity is an unnecessary checking. It will be checked in
> checker_selected.
>
> Signed-off-by: PengLiang <peng.liang5 at zte.com.cn>
> ---
>  libmultipath/checkers.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libmultipath/checkers.c b/libmultipath/checkers.c
> index fd999b0..05e024f 100644
> --- a/libmultipath/checkers.c
> +++ b/libmultipath/checkers.c
> @@ -213,7 +213,7 @@ void checker_put (struct checker * dst)
>
>  void checker_repair (struct checker * c)
>  {
> -       if (!c || !checker_selected(c))
> +       if (!checker_selected(c))
>                 return;
>
>         c->message[0] = '\0';
> --
> 2.8.1.windows.1
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20161120/5d7eb0a4/attachment.htm>


More information about the dm-devel mailing list