Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7066649imu; Thu, 31 Jan 2019 04:29:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN6B0UYGZ5aTFUvEGlCzNacXIpPfRMc0dT9Fxlz1iKArCHbtfUVQ4WRwMS5ZhGKnMsUAAbCr X-Received: by 2002:a62:442:: with SMTP id 63mr33967601pfe.156.1548937798166; Thu, 31 Jan 2019 04:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548937798; cv=none; d=google.com; s=arc-20160816; b=bj3bAkufs9MMqZbziJUC9os5dRk1zXixWTbvuZBS0A9R2ng4JYdGontz5OERjm9hK7 chaAnDHSwbhJyVhZFydA/MnSqpUJCj6Z9ya9/YBGtItihN0VVKbpmeZaDN4GdeopF3An acSlsebkVo5/MWs8euOtFriSHzSycDII7DBKwiP0psOxPd0uPFNwm3u5Y+guEWPe9u5Q lhJWCoTJzUeJPJWV5L3mZNIC0eG9yRrDFJ1g0qCW8DeM+/MYibrvkLgtmxBY0vm9laGp uK3xfY4J9gmLeZUL/PdzTkQmNsrIfP/dColyVnRheGYSdfp1UwfOCoe5Bt3EU62N4h0h A0Yg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=iW/h8MWbaF01RmdDZP0j9NWIvLzXRHN4Z1zyGuV1d6o=; b=KycetoAc2Bui1gw77yu82XmetIiUonSutknifOgAXpKpK6CNB5vffrQH6q5cbrOt6S fYO4v3nUHrpoMNkot3AG+aWjnUeSszoNYKXxPjQNyRjp/kKivMsgLuTj8wj93OdSCyPC NRGLFIAhlMu7E3klSy/OEy9FQ3Z1QGUdxMSYs8p7ZlkKGISrup7f6dwI6S5UPWKtd5Uj k5Z1JPBjyHHXYIwvE6XMlcIbzJvR/+B1AOQU6estY+M8Z9Lstf9iG/PlXPwWThvQ7g+M UZ/SCcjpFONUe7gqERk02S23pJtZOYU8dqBQ6mPZ4D861P7r4EwHILZC1yfnAPGlrw6L D0IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vPvatdIk; 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 h16si4201621pgj.203.2019.01.31.04.29.43; Thu, 31 Jan 2019 04:29:58 -0800 (PST) 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=vPvatdIk; 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 S1732801AbfAaM2D (ORCPT + 99 others); Thu, 31 Jan 2019 07:28:03 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33520 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726153AbfAaM2D (ORCPT ); Thu, 31 Jan 2019 07:28:03 -0500 Received: by mail-pf1-f193.google.com with SMTP id c123so1415617pfb.0; Thu, 31 Jan 2019 04:28:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=iW/h8MWbaF01RmdDZP0j9NWIvLzXRHN4Z1zyGuV1d6o=; b=vPvatdIkQdwXA+K9vkyjuWBbl02JR2/zZo8BKHKhPEdmJPgagwHrf2fHckT+0mtpCB UoebbNkE/kETF46WdzXP3qK4Y/pJ0QjeeJNrKUY7Ca9fSRH1JYeFFO8t1UZv0vJ4/kwC JM6PuzHHGsNdBXf/Gxl3Nqom19XbSdK064fjO7HX5a6x7r7vqlMZUs9N5FlKDIlokeJ/ e2248GloO9YKJafGponj+stREHLvdFltuYscRsUAYvgFdMXB0SImPyXMofg/+hF87+6H LrCuOyoh0BmLjhAj4Yk2QZblNmsb77teSDRZvf/xTOBu4F6Q1CaaVF23fnZ7cKIsjkr5 qI3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=iW/h8MWbaF01RmdDZP0j9NWIvLzXRHN4Z1zyGuV1d6o=; b=siHxmgrqWpeZoC7Q10rjjQTYFiBdRbU4zPpNoFOyae3LVezArDgI+8ho5zqKy/qc5a K0erXL85dTUmZRDLvbyurbTxn7wlwlYPD2csHcR3iDQOflDRsIrPpqOKhcWDBhvy5nDG VUVPE3gbnChQsj0PFC4ZSan73CJKjQcd4Ez/4oDbz9Ls2Tfughv8rHGm3b6dTwWjG4C1 mCeHXfhSb4Dhp6NpNSMOTluqnwl6KxFRBYmcc8E1kk9860x1rgVWLHL0tEyaZmOExwdm e+/IsGJYGCS+Moy6VsDM71vV2NHQ1GMr5gaLTY+zKqIx9/cD8i3yRmEwX8i+YAIZ9nVf iQcg== X-Gm-Message-State: AJcUuke1QZy+LBIQ9eK7ANhCRZnj6ADihweAnLefQRijoTzedtE+kOzH oUT+CtDFG/hZWIF080EpCcl/smXRQSKUQQdXNuo= X-Received: by 2002:a62:5793:: with SMTP id i19mr34875351pfj.49.1548937682375; Thu, 31 Jan 2019 04:28:02 -0800 (PST) MIME-Version: 1.0 References: <1548935553-452-1-git-send-email-pawell@cadence.com> <1548935553-452-5-git-send-email-pawell@cadence.com> In-Reply-To: <1548935553-452-5-git-send-email-pawell@cadence.com> From: Andy Shevchenko Date: Thu, 31 Jan 2019 14:27:50 +0200 Message-ID: Subject: Re: [PATCH v3 4/6] usb:common Simplify usb_decode_get_set_descriptor function. To: Pawel Laszczak Cc: devicetree , Greg Kroah-Hartman , Mark Rutland , USB , Hans de Goede , "Krogerus, Heikki" , Rob Herring , rogerq@ti.com, Linux Kernel Mailing List , jbergsagel@ti.com, Sekhar Nori , Nishanth Menon , Suresh Punnoose , peter.chen@nxp.com, pjez@cadence.com, kurahul@cadence.com 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 Thu, Jan 31, 2019 at 1:53 PM Pawel Laszczak wrote: > > Patch moves switch responsible for decoding descriptor type > outside snprintf. It's little improves code readability. > + char *s; const ? -- With Best Regards, Andy Shevchenko