Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp310999rdh; Thu, 23 Nov 2023 04:53:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IG0Rv+oSZZ2jB8oTrOvwwdt6BVK02UZh87kXbGcEO8+qP3+8XCrq0xM9asj4/yhJT3+MyZ0 X-Received: by 2002:a05:6830:11d8:b0:6ce:267b:d409 with SMTP id v24-20020a05683011d800b006ce267bd409mr5920621otq.13.1700744001523; Thu, 23 Nov 2023 04:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700744001; cv=none; d=google.com; s=arc-20160816; b=DJVAI6BAwvogTIZJwJtHl/we4Jtc79N7MGuNucrjdbY2oytZJ+pWsW8E656qVyMt7U AvOSQXIXJx86QkftpUDJ4Zqk/X6aQ/zdpBEkFaciBJMIWYFDxKqaIfUKhQVssIVvBdV3 Fx9nYgHI61/HsqfhNkIfDjijSFOUpmLNq1f/tOJ73QS4YCB0vLkz6XeoYt6bSZmVqCIr rWa+qsaLzOAlvq1rJ1fxXquUxAuMnlJCjuwdzQGGrFmqFUa9DOB+uw+xUH0WFPHQr3jk e/BohG6ulTWXLLA3U+y4LD2qWcTr7CIE1z2zO4Np15fzWhO58lGGQCqg2Rpy4AzXqKHY FtCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=s543pUKY2D2WyYE8/45ioA23x8Q3YqNfuEZjXMJpF2Q=; fh=K+NyCvjpzb3qSnwBGaBESzGNbbdEchBYnJxWXiu2m8E=; b=01PeRHmX1CpQtwcXGhaU1DbAXd6xzlctXqC4wMQ3f8OMBzAdmcCmc4lyAT2DI47slj xVfgpg70J0JekV1cKqlCQfy+uspBFEr0I2aaxh+zQXCkPXalG/waZiOqUKTgKweOMbQ9 hEx86urdsawwZTm7YT5gmf9vK1262/Gi8ZMesTb3USsaafUhEijYi76nVDe93hnZ0rHy XtxD7mwXm/nJNseLdFOYX8Z4UCsacWcCV0jxejMLMaPwSVY1LMDufa1IFl6oTDLuw7Xc 52FMO3yGU9cDLlbzTuLegV19H0VCsecNgDi/unMqf2pOOgFbR+mh0DLbUoB3ddcy5ep7 peTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PB81C+oE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id 31-20020a63145f000000b0057760853706si1243026pgu.578.2023.11.23.04.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 04:53:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PB81C+oE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9C3B58329A02; Thu, 23 Nov 2023 04:53:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345382AbjKWMw4 (ORCPT + 99 others); Thu, 23 Nov 2023 07:52:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345371AbjKWMwy (ORCPT ); Thu, 23 Nov 2023 07:52:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D939D42 for ; Thu, 23 Nov 2023 04:53:01 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2EFF1C433C7; Thu, 23 Nov 2023 12:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700743980; bh=F7P1UrcrA7XXYERAlMWEnIMlgPNCzYeKlSXTkoC+Q5c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PB81C+oEP4NslxZtrQVlx0Jb94L25vntk60abpyG1TQRbvYo8ZMR1FLYs4DbWZCf9 q310bWMtehDxFYYsr7zeqQFMowHy6oGAKPVKJUpo80QSdUMCdZ10SxNPBZRnESpEoI MbZvrayzvPCT8oZ67f5qnT7iyZ9omLH48kbEvnrE= Date: Thu, 23 Nov 2023 12:48:35 +0000 From: Greg KH To: Dorcas AnonoLitunya Cc: outreachy@lists.linux.dev, julia.lawall@inria.fr, Sudip Mukherjee , Teddy Wang , linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] staging: sm750fb: Remove unused return value in display_control_adjust_sm750le() Message-ID: <2023112329-daybed-elevate-88aa@gregkh> References: <20231101152137.10664-2-anonolitunya@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231101152137.10664-2-anonolitunya@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 23 Nov 2023 04:53:18 -0800 (PST) On Wed, Nov 01, 2023 at 06:21:34PM +0300, Dorcas AnonoLitunya wrote: > Modifies the return type of display_control_adjust_sm750le() > to void from unsigned long as the return value is being ignored in > all subsequent function calls. > > This improves code readability and maintainability. > > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Dorcas AnonoLitunya > --- > > Changes in v3: > - Rebase patch to apply against latest branch > > drivers/staging/sm750fb/ddk750_mode.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c > index e1f20379431c..4278f9a826ab 100644 > --- a/drivers/staging/sm750fb/ddk750_mode.c > +++ b/drivers/staging/sm750fb/ddk750_mode.c > @@ -13,7 +13,7 @@ > * HW only supports 7 predefined pixel clocks, and clock select is > * in bit 29:27 of Display Control register. > */ > -static unsigned long > +static void > display_control_adjust_sm750le(struct mode_parameter *mode_param, > unsigned long disp_control) > { > @@ -70,8 +70,6 @@ display_control_adjust_sm750le(struct mode_parameter *mode_param, > disp_control |= DISPLAY_CTRL_CLOCK_PHASE; > > poke32(CRT_DISPLAY_CTRL, disp_control); > - > - return disp_control; > } > > /* only timing related registers will be programed */ > -- > 2.42.0.345.gaab89be2eb > > Does not apply to my current tree :(