Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1440904imm; Tue, 22 May 2018 04:15:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZos06cnRyPhYZZx+rYkw8Bm2nBhhFECaOScmwO74ZFd0SUTU/f3qkFQ6TJJ2WiJKZWVy2cs X-Received: by 2002:a62:d508:: with SMTP id d8-v6mr23353455pfg.234.1526987739860; Tue, 22 May 2018 04:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526987739; cv=none; d=google.com; s=arc-20160816; b=LnNDz/uD6SmN7x0RxcDkjW/sKywaIyyVZnMm8XEHRn1L42EwDeWVqULqaY3DIj2PFr TmCvpvJZHFjHpIsjpIKOoBpyMpaYjpqv+0qwDQfpqSO0HjaKDEm8hZhn4XZwRVHakU19 JCJIJlzPTvvo/C6gNVcZC+TscCxj5QvWp3zb65TeYK8jntSfti2SkXH9/omg58ZXQ3No h+QcE2PpiHmqAITvsCB2jyJue+oGoWSB2VAqy4tux+DFQCOD7oBM22eUTrWUZAPPWwXv YT9MC1hsdWm8G33V6macsX88Fg0Y9EMyF4PTnD+7uJsJDZ7uv9i8Hr+YFwOt6yJsIdwF KWcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=2NpUxxv+/445mhPNq1Pdm/oEXtlpakXUvERGMUgQ93w=; b=SW5fGBl8MPv2gvzkYQzn84wywPnLtCxXGNEdDEfeq8RrxMhx90XefFVe5mW6j+d7WZ SEgxbRihN8YWMNNoKrMHGOcO3awzKQV4dYIhPk4upgDKATl72JPoKlY++gfFtJAo/SUK nNczKlknkFH1mX4F+0+P2dC9OCnPoY/3T4LmhnXn3uMEtAG2pkewbXb6qogcGPZx8mrC 30W1r6QblkAzZkZggZxl7XWzNW1bH5XEG1Fj4v7yz4cjcjNUxDCNF32Kp/nRWyDHgs+e ijc7Niv/cXQHYE63gvD5MzkTho6xqAJFLYN33bgOXp2XJ2pnSksNp1dqag5xxzTDc+ow +xhw== ARC-Authentication-Results: i=1; mx.google.com; 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 b67-v6si16417076pfa.71.2018.05.22.04.15.24; Tue, 22 May 2018 04:15:39 -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; 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 S1751445AbeEVLNk (ORCPT + 99 others); Tue, 22 May 2018 07:13:40 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:44259 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750733AbeEVLNj (ORCPT ); Tue, 22 May 2018 07:13:39 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id BDB29DA2A6C39; Tue, 22 May 2018 19:13:35 +0800 (CST) Received: from [127.0.0.1] (10.177.29.40) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Tue, 22 May 2018 19:13:34 +0800 Subject: Re: [PATCH 01/33] usb: phy: use match_string() helper To: Greg Kroah-Hartman , Andy Shevchenko References: <1526903890-35761-1-git-send-email-xieyisheng1@huawei.com> <1526903890-35761-2-git-send-email-xieyisheng1@huawei.com> <20180522100208.GC11079@kroah.com> CC: Linux Kernel Mailing List , USB , Felipe Balbi From: Yisheng Xie Message-ID: <6bc1152f-198f-4b73-d3b8-2bde7d83de71@huawei.com> Date: Tue, 22 May 2018 19:12:44 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20180522100208.GC11079@kroah.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.40] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2018/5/22 18:02, Greg Kroah-Hartman wrote: > 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. I will keep it as err in next version. Thanks Yisheng > >