Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp831034imm; Mon, 21 May 2018 15:20:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo6Huveq15xsQq7h0PodObB3kjOjURsACqd92gIfTkCKmUuMw1QLgTAcTMUyhNUkuU3RxqM X-Received: by 2002:a17:902:5c6:: with SMTP id f64-v6mr21959544plf.50.1526941229215; Mon, 21 May 2018 15:20:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526941229; cv=none; d=google.com; s=arc-20160816; b=kU8Xj6v/lC6R2/Pp0mLhwKA/qmB7DJxrQ4YuHSVLzqFJDJP8lOeJbPiuqqBetbh/Xn 9NhCl66m7OY8EQfb/Nvayomuy85tGpZbblPfvDdwKLQkKVHO3idi45mIU+/dZU7Jj1Vp rRWVG5WAbT4Tzbjzuusad9XDN9Ag84kfjmAmI4cQoTIgb8tNrfF7wbRZbdjf6v32DYY9 CJ2fkTrK3WOFbUHWEdKh/fh4Kjkl25DOgjhWwkUAt6Zma03KcqNwY/wWKPsAWOw1M30O qXOYu7T5twPtU2BqG3eFZRxVVKJXs6uUrM9ltApp/OcLpFjgqG+wq0kmY4tttCmxmxJA h5ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hfyvVuF/SWyWdh6ql7xXwGLeojP0+D8PeVAPgXxWbBw=; b=iJPKv0pT+3HIVwidOiW51cYdmgZqdz0QOJ5Rfh81t8B7tL/G6XAM6IhUKHK+6sQidp rmQHxYjHL6oSE75G7t9rsU3mEmJ6nSo1EUJPvU4OQAO6Q6UklyuFYKc26x8DdmB5NMhA LTTFUt0UQekFU2iCNtNalpN+sj/lOHzAqJgzvg7x75GOlBSJnclRChlEECOC1zPLynpz rSLf8s/A3GxI7TAGDMKT0LeixJDzpXGgIa1imQ1ALy0KWUSfCIr3SSbdyt6Acd1QlDQ/ qatwNxna1gnKv0VGEVTrq3R3GC/Pde00MUhr6agSyxx++h2F9+9YhqYjRExWCRPgnKzY tpUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K1fNLf7Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si14747767pld.296.2018.05.21.15.20.14; Mon, 21 May 2018 15:20:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K1fNLf7Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753342AbeEUWUG (ORCPT + 99 others); Mon, 21 May 2018 18:20:06 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:38221 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752856AbeEUWUC (ORCPT ); Mon, 21 May 2018 18:20:02 -0400 Received: by mail-qk0-f194.google.com with SMTP id b39-v6so13047596qkb.5; Mon, 21 May 2018 15:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hfyvVuF/SWyWdh6ql7xXwGLeojP0+D8PeVAPgXxWbBw=; b=K1fNLf7Q10JjdYKV+6E1YDrzwkeZx9P76NUX2vSZ+wqfc4WWDfTYHrvAK40jG4gsN+ 1WzbRIpJ5Kezmvh+D1E6WmYLK+UCte2xHRXlVtECs5nLXOHX/HpHvOPPHNE5xNVFJzvx NCao/c1Zom1q9tHqd4Rtyu5n21GVL7DBLESuPHvmJ/D+ri6SoazSWQW+MlhqZNJ/xeo3 Lmzc42hMN4ubdDeWbes3Tkw8QPkge15h7DrwaeeKsYYO+v9YR0NSStqigiOOLO77RQw6 DaXyPDOXsftORYYDmppsXwbA77SK934Eb4NFmzxC1ptHnfQ3cjnJoGY2DkAeMkKP1/Jo IcMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hfyvVuF/SWyWdh6ql7xXwGLeojP0+D8PeVAPgXxWbBw=; b=S5xgLCBJrBC8sp+95C6NIu/mH8X+fS4KUEdxrf0ZxcfOoVpMZEG4CZfdDqbH6d0UhP 6n66vVGpdYKgiT556CkB5eUGiKkBAQ/AzT3FPyX6a92jmBLHf/2KzH3uS8t+Q50WNzdf 02JHKLOiXINu3Flkn9b52z2MyM8bcjVWnqmJ8bEMgjRxJNeEFoWCVwTQJKNP0pcXFKoP YIYc7i1Qo6C1kiEnaY+PmBQEvCo2Q7j3bTMSoG8v0UVmrQommpenR5zJ+XsCRU004qfY 5vejBCuYYVnZI0UaoXJZhRrMPpEhkGv760+W7OYLDHJHdwp4phgkdK6QlFpHthMUk+uU LX8Q== X-Gm-Message-State: ALKqPweIxhetNU5ovXNdp32iBhLZlgAg9+viXpnLsVBYu/Vao0Ya37Ks gbKPtr1CoY+SNcq6QqBqFGePfkaS16h5RsYLQhmokAfa X-Received: by 2002:a37:cbc1:: with SMTP id u62-v6mr18019618qkl.83.1526941201455; Mon, 21 May 2018 15:20:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Mon, 21 May 2018 15:20:01 -0700 (PDT) In-Reply-To: <1526903890-35761-2-git-send-email-xieyisheng1@huawei.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-2-git-send-email-xieyisheng1@huawei.com> From: Andy Shevchenko Date: Tue, 22 May 2018 01:20:01 +0300 Message-ID: Subject: Re: [PATCH 01/33] usb: phy: use match_string() helper To: Yisheng Xie Cc: Linux Kernel Mailing List , USB , Felipe Balbi , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > - int err, i; > + int ret; int err; would still work. -- With Best Regards, Andy Shevchenko