Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1371707imm; Tue, 22 May 2018 03:03:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrDuYBoWCCMmB6mQ7Vgdz0tqrMB+hZDAHDBT6GSAXXSAotlbRgIYisBNeUade1O0JPcfb94 X-Received: by 2002:a62:e107:: with SMTP id q7-v6mr23444617pfh.226.1526983390147; Tue, 22 May 2018 03:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526983390; cv=none; d=google.com; s=arc-20160816; b=YAHw853omEInlC2uaD2TpATw7Ia+ATua7gTPsCS/85HwwxesNKmsQG3eLmpj2y6IlL We8GbyBKPQ+4OCfV6uVFeXduAfOVAGQ0G3bQI52Jr4N+q001SF1uuUwwp2YbrMBTrU/h 4FiBLwJKLRhnh/EY0XESrz/ns1jR7Df8MfV5ofDOsN0riZW/8dei9wqFjXlOxW7YVaGQ MLPH/upL4Dm+eaA4nASvmuTCl7SgY298GhVhYEnadU2tdAuhRouYSqISHSwJm7J8Isjl WAqlbJnsAMxyfbRivODXWs/85N81CuCW6wxkhfHKGA17Q6jp6Y8u6LfPFdJcrtpbUaEY sh+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=1mFugAxa2+6jNo1SCo0PkE/wvxE3QrX02R8cjgm9pgM=; b=CM6SWRo5jzfUm7xoc6G/nZmoWSv63WVznTiuU+6lDLHu+grLaC7TSH0SNsKz9nMvOO hXDVyJSi53CJWLfc58bptvE6tNTvelFH1K0YZnpeXCnxcqjo4m/P4sfJswzKmFNIeLad 7ZAshrvwo6o5n+03qF8n43st+GguVUTHo+6kdOisF+lvmrvh1AxDiscQ+iXK/MK4oKMZ 7r958SKky9xyiJBOnz7XNhsk9d621PkAcllQIsFb6bdfBC0AZxhJc4S4WvvPDhF07p5p fj9N023WRPX0lZa/+AaKQnBczoA9NR2s7pJDvHnFcvjqjt1/gqMltEgxDwFHdTeHFDnT uDBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U1bVoZHE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k129-v6si12645741pgc.383.2018.05.22.03.02.55; Tue, 22 May 2018 03:03:10 -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=@kernel.org header.s=default header.b=U1bVoZHE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751403AbeEVKCd (ORCPT + 99 others); Tue, 22 May 2018 06:02:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:60128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbeEVKC0 (ORCPT ); Tue, 22 May 2018 06:02:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C984B20853; Tue, 22 May 2018 10:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526983346; bh=v+S0X7mzYpUZE92alPE63Co7SdXBmIDnvcmUDb1ynvM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U1bVoZHEGoHkYxhYysugc12PKdVbp7VUBeoP7+aSCAWcUPwAX9vpS0KvZ9Gx/xXYa XZTXTGCewopjlPrzH/WeZ1bP6hPLUozKst566H2UE4ChsdoPXQFkanRUfm5NHlucDd yTG7ZVf3ZHCy8HgiWfIgzPTttR/BWNKDUtG5lvvY= Date: Tue, 22 May 2018 12:02:08 +0200 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: Yisheng Xie , Linux Kernel Mailing List , USB , Felipe Balbi Subject: Re: [PATCH 01/33] usb: phy: use match_string() helper Message-ID: <20180522100208.GC11079@kroah.com> References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-2-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 01:20:01AM +0300, Andy Shevchenko wrote: > 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. And it reduces churn.