From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932488AbbA0Nae (ORCPT ); Tue, 27 Jan 2015 08:30:34 -0500 Received: from mail-pd0-f180.google.com ([209.85.192.180]:56802 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932380AbbA0Nab (ORCPT ); Tue, 27 Jan 2015 08:30:31 -0500 Date: Tue, 27 Jan 2015 19:00:19 +0530 From: Sudip Mukherjee To: Tomi Valkeinen Cc: Jean-Christophe Plagniol-Villard , linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] OMAPDSS: hdmi5: remove unneeded check Message-ID: <20150127133019.GA25400@sudip-PC> References: <1421167620-17290-1-git-send-email-sudipm.mukherjee@gmail.com> <54C63606.30002@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54C63606.30002@ti.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 26, 2015 at 02:41:42PM +0200, Tomi Valkeinen wrote: > On 13/01/15 18:46, Sudip Mukherjee wrote: > > prior to this check we are checking for word_length_16b and if word_length_16b > > is false then we are returning with -EINVAL. > > So at this point word_length_16b can only be true. > > True, but it looks to me the code may be extended in the future. > > And if it would be clear that it won't be extended in the future, then > there's more code changes needed to reflect that (the whole > word_length_16b can be removed, etc). you are the author of the code, so you will know if it will be extended .. :) Sudip > > Tomi > >