Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED76DC433FE for ; Tue, 23 Nov 2021 11:51:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232844AbhKWLzC (ORCPT ); Tue, 23 Nov 2021 06:55:02 -0500 Received: from mga02.intel.com ([134.134.136.20]:59530 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbhKWLzA (ORCPT ); Tue, 23 Nov 2021 06:55:00 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10176"; a="222230036" X-IronPort-AV: E=Sophos;i="5.87,257,1631602800"; d="scan'208";a="222230036" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2021 03:51:51 -0800 X-IronPort-AV: E=Sophos;i="5.87,257,1631602800"; d="scan'208";a="650044232" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2021 03:51:49 -0800 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 80827201E1; Tue, 23 Nov 2021 13:51:47 +0200 (EET) Date: Tue, 23 Nov 2021 13:51:47 +0200 From: Sakari Ailus To: Eugen.Hristev@microchip.com Cc: leonl@leopardimaging.com, linux-media@vger.kernel.org, skomatineni@nvidia.com, luca@lucaceresoli.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] media: i2c: imx274: simplify probe function by adding local variable dev Message-ID: References: <20211123111521.593863-1-eugen.hristev@microchip.com> <4ca5590d-b872-3720-d8f8-ec95a090c689@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ca5590d-b872-3720-d8f8-ec95a090c689@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 23, 2021 at 11:35:33AM +0000, Eugen.Hristev@microchip.com wrote: > On 11/23/21 1:25 PM, Sakari Ailus wrote: > > > Hi Eugen, > > > > On Tue, Nov 23, 2021 at 01:15:20PM +0200, Eugen Hristev wrote: > >> Simplify probe function by adding a local variable dev instead of using > >> &client->dev all the time. > >> > >> Signed-off-by: Eugen Hristev > > > > It's not really wrong to do this, but is it useful? > > > > You can't even unwrap a single line, the lines are just made a little bit > > shorter. > > Hi, > > I think there are a few (18 +, 21 -) ... but the idea was to make the Indeed you're right. > probe function a little bit more easy to read. > Up to you if you want to take this patch. I'll take it. -- Sakari Ailus