Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp837968imj; Fri, 15 Feb 2019 07:38:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IbM97hWOX6atSSxSyV3+0NoQRcdfthMivxCKy3FvRO/9IiYKZVAwi4ERLSZTCo2jKwr6hYy X-Received: by 2002:a63:d25:: with SMTP id c37mr5537303pgl.230.1550245089521; Fri, 15 Feb 2019 07:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550245089; cv=none; d=google.com; s=arc-20160816; b=D3THAWoBg1/99T1MXy41HqaGje1OIDvBa0xE44Dd4Piwg5tPzI9LZq3Eez3AJ4MSJ1 Dp3C8Tv5CWEJCQKM8orxTmdmZsYaGLvIPZzqUXXrLd9E54yDbCNHvjvqef+wCqqYbUbl KktaZbFtldHPSIuGyuOylBf27Y36NqWc22DuGBFFxoOWe/aRKYKNIPxg4PgHDzs3xNvD Tp+aSpyS/wTTOF/uK3HrYl4shEFQo5IzfHDPIaJ4nSYWcE9wyTMVMlsYOubtW5laj0kj VRXw2a/OpDoFMFLIyhWM5KIrcgPBe7PF2VdccU6rJRuhSzOaum5eZzrUl3NSMFevCBBI OHJA== 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; bh=YDgNj+hLumR0nv6kzdyxNqixIoCoe5NmWzayHzxN+d8=; b=Yxa7Am/Dwm72+9duu/NsisnnqBnkLdLU3h0y4dje3lIXVHxUOlBrqCip1k25cgd2OF o9mRyAJFUDnoIFDVBFALyy1W+MwUIjISs9UIgsRHddTbQe1Kask02tKUBy6Nnfe1HrsZ gxlNjCX1avDV/ehp+jgJsluLAq8obKPut3arJYUPxrnweVXNIfSMHf7JG//C8wJ3TY40 aVF65evlTXy5EBpkYB+aj3BG0iRAjOPxTYsbF7+amVkCM0gLOvTl/K8t0EfGq9Ba1PNr j+57TQmDw1G/sXvfb5JGAxJiIijY1yyV+AKrKN0RO2Yuy5keunQgXnKyMJMS/17ysfY6 tU1g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 98si923164pla.320.2019.02.15.07.37.54; Fri, 15 Feb 2019 07:38:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404252AbfBOIZZ (ORCPT + 99 others); Fri, 15 Feb 2019 03:25:25 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:40401 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729605AbfBOIZZ (ORCPT ); Fri, 15 Feb 2019 03:25:25 -0500 Received: by mail-vs1-f67.google.com with SMTP id z18so5315755vso.7; Fri, 15 Feb 2019 00:25:24 -0800 (PST) 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=YDgNj+hLumR0nv6kzdyxNqixIoCoe5NmWzayHzxN+d8=; b=c/rOaGC55XL3mav6pSSSjuDqrDZh2thCFBXjfOQMZzWS41aoXaWGlbhtk+8eiABIHX 4JULw+dbKk893JXXUj0k17E314XFYE2xzYtNR18YAWpnvrH5Z29bZBBwpGL/gzYXeyZ7 R8oj/rpR5YsOJySNFtm3/QnSu+Kxraj7m4MMshglETs9bDxktQoFf07CHx8DVPbq/WsZ S/xij8g/tuo9VuaZR8YQV/Ut5+6GYHNuIz3GxmyNko/X2V22hk44AyB2v6D0aaQBeuzn MWu8logJwWeSMcc9PJA3o9jcgyQb4ciFFcEtgMuCThoVz6tnNK8z+iMjNPl/a9svywAw mFVA== X-Gm-Message-State: AHQUAuboilIO87mxlhkH7vzYi4atCYYa+n7acxBiSgxL4G8kjnX8lGVp P/duJ+SuehcVOPJpqtqlcZVU+fO3eDxeHbHMAktI5+PQ X-Received: by 2002:a67:f43:: with SMTP id 64mr4285204vsp.166.1550219124276; Fri, 15 Feb 2019 00:25:24 -0800 (PST) MIME-Version: 1.0 References: <86a3eca8946cbeb648ddbe3ff67b983ece7498d8.1550182390.git.fthain@telegraphics.com.au> In-Reply-To: <86a3eca8946cbeb648ddbe3ff67b983ece7498d8.1550182390.git.fthain@telegraphics.com.au> From: Geert Uytterhoeven Date: Fri, 15 Feb 2019 09:25:12 +0100 Message-ID: Subject: Re: [PATCH] video/macfb: Remove redundant code To: Finn Thain Cc: Bartlomiej Zolnierkiewicz , linux-m68k , DRI Development , Linux Fbdev development list , Linux Kernel Mailing List 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 Fri, Feb 15, 2019 at 3:19 AM Finn Thain wrote: > The value of info->var.bits_per_pixel get checked in macfb_setcolreg(). > Remove additional checks as they are redundant. > > macfb_defined.activate gets initialized to FB_ACTIVATE_NOW by the struct > initializer. Remove redundant assignments. > > macfb_defined.bits_per_pixel, .width and .height all get assigned > unconditionally. Remove redundant initializers. > > Cc: linux-m68k@lists.linux-m68k.org > Tested-by: Stan Johnson > Signed-off-by: Finn Thain Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds