Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752329AbdIBKjh (ORCPT ); Sat, 2 Sep 2017 06:39:37 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:43694 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751387AbdIBKjg (ORCPT ); Sat, 2 Sep 2017 06:39:36 -0400 Date: Sat, 2 Sep 2017 13:37:24 +0300 From: Dan Carpenter To: Andy Shevchenko Cc: Hans de Goede , devel@driverdev.osuosl.org, Kuppuswamy Sathyanarayanan , Heikki Krogerus , Mathias Nyman , Greg Kroah-Hartman , USB , "linux-kernel@vger.kernel.org" , Platform Driver , Sathyanarayanan Kuppuswamy Natarajan , Chanwoo Choi , MyungJoo Ham , Guenter Roeck , Darren Hart , Peter Rosin , Andy Shevchenko Subject: Re: [PATCH 05/11] mux: Add Intel Cherrytrail USB mux driver Message-ID: <20170902103724.mx7dpggrbbwx57ls@mwanda> References: <20170901214845.7153-1-hdegoede@redhat.com> <20170901214845.7153-6-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 535 Lines: 19 On Sat, Sep 02, 2017 at 01:19:05PM +0300, Andy Shevchenko wrote: > > +static void intel_cht_usb_mux_vbus_work(struct work_struct *work) > > +{ > > + struct intel_cht_usb_mux *mux = > > + container_of(work, struct intel_cht_usb_mux, vbus_work); > > + bool vbus_present = false; > > + int i; > > unsigned int i; ? > int i is fine. Static checkers which complain about stuff like that should be uninstalled. > > + > > + for (i = 0; i < ARRAY_SIZE(vbus_cable_ids); i++) { regards, dan carpenter