From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 13 Apr 2017 00:48:40 +0200 (CEST) Received: from localhost.localdomain ([127.0.0.1]:33320 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S23993934AbdDLWscd8grP (ORCPT ); Thu, 13 Apr 2017 00:48:32 +0200 Received: from h7.dl5rb.org.uk (localhost [127.0.0.1]) by h7.dl5rb.org.uk (8.15.2/8.14.8) with ESMTP id v3CMmVMh007927; Thu, 13 Apr 2017 00:48:31 +0200 Received: (from ralf@localhost) by h7.dl5rb.org.uk (8.15.2/8.15.2/Submit) id v3CMmUQS007926; Thu, 13 Apr 2017 00:48:30 +0200 Date: Thu, 13 Apr 2017 00:48:30 +0200 From: Ralf Baechle To: Paul Burton Cc: linux-mips@linux-mips.org, trivial@kernel.org Subject: Re: [PATCH] MIPS: Remove confusing else statement in __do_page_fault() Message-ID: <20170412224830.GA7899@linux-mips.org> References: <20170330212703.32066-1-paul.burton@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170330212703.32066-1-paul.burton@imgtec.com> User-Agent: Mutt/1.8.0 (2017-02-23) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 57683 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Thu, Mar 30, 2017 at 02:27:02PM -0700, Paul Burton wrote: > Commit 41c594ab65fc ("[MIPS] MT: Improved multithreading support.") > added an else case to an if statement in do_page_fault() (which has > since gained 2 leading underscores) for some unclear reason. If the > condition in the if statement evaluates true then we execute a goto & > branch elsewhere anyway, so the else has no effect. Combined with an #if > 0 block with misleading indentation introduced in the same commit it > makes the code less clear than it could be. > > Remove the unnecessary else statement & de-indent the printk within > the #if 0 block in order to make the code easier for humans to parse. Yuck ... Applied. Thanks! Ralf