From patchwork Fri Aug 7 12:04:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 6968611 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 49B74C05AC for ; Fri, 7 Aug 2015 12:04:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 70C6D20628 for ; Fri, 7 Aug 2015 12:04:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E75720221 for ; Fri, 7 Aug 2015 12:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752887AbbHGME3 (ORCPT ); Fri, 7 Aug 2015 08:04:29 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35330 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753361AbbHGME1 (ORCPT ); Fri, 7 Aug 2015 08:04:27 -0400 Received: by pabxd6 with SMTP id xd6so68924541pab.2; Fri, 07 Aug 2015 05:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LksVzMza2jrB/ur/+wpUNJHhsZPj7SFOy1EMoLBFm0k=; b=YhvRdoBx/sjM1I8ETE/y2Enl9QTvpJbwVJSYjGaix7RNU6Odal+s3XtlCxgHGRN3S5 xZWUp1S0K4Y3EhCVHl8sTg+H3o+NFXrvl3afQlBhH+j608uJ3wjZk00TmRW4ut/AxC4Y NhnDa9jAXKQpT1EnvIhzJWBX6Kgvwis6HlAzdPtoJXBOW+qbPw1SwS5izWLEMj7n1+e/ 0+cZBxz4FU2yaHYeLbY6hvkLy+5MKA5L9EHkmymxbMiiR5MxlmcdF/0WIe7I1YH2ex03 AfLcRv02wd+EqbA74YGaDAhQdEjF0WbJ40M85SsjxkEbimwhRaiW1P90GvUf9iI1msvH Cnrg== X-Received: by 10.66.224.140 with SMTP id rc12mr14086416pac.34.1438949067036; Fri, 07 Aug 2015 05:04:27 -0700 (PDT) Received: from localhost.localdomain ([49.206.246.113]) by smtp.gmail.com with ESMTPSA id rp12sm5745689pbb.65.2015.08.07.05.04.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Aug 2015 05:04:26 -0700 (PDT) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, Sudip Mukherjee Subject: [PATCH 5/5] staging: sm750fb: simplify return Date: Fri, 7 Aug 2015 17:34:06 +0530 Message-Id: <1438949046-18765-5-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438949046-18765-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1438949046-18765-1-git-send-email-sudipm.mukherjee@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Lets return the return value directly instead of using a variable to store the result. Signed-off-by: Sudip Mukherjee --- drivers/staging/sm750fb/sm750.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index e7fad0f..07f8afd 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -298,17 +298,13 @@ static int lynxfb_ops_pan_display(struct fb_var_screeninfo *var, { struct lynxfb_par *par; struct lynxfb_crtc *crtc; - int ret; if (!info) return -EINVAL; - ret = 0; par = info->par; crtc = &par->crtc; - ret = crtc->proc_panDisplay(crtc, var, info); - - return ret; + return crtc->proc_panDisplay(crtc, var, info); } static int lynxfb_ops_set_par(struct fb_info *info)