From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Slaby Subject: Re: [PATCH] tty: serial/crisv10.c: remove unnecessary null pointer check Date: Sun, 20 Jan 2013 11:14:02 +0100 Message-ID: <50FBC36A.7080009@suse.cz> References: <1358375444-13026-1-git-send-email-dinggnu@gmail.com> <1358375444-13026-2-git-send-email-dinggnu@gmail.com> <20130118133821.GQ23529@axis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ea0-f177.google.com ([209.85.215.177]:45920 "EHLO mail-ea0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249Ab3ATKOA (ORCPT ); Sun, 20 Jan 2013 05:14:00 -0500 In-Reply-To: <20130118133821.GQ23529@axis.com> Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Jesper Nilsson Cc: Cong Ding , Mikael Starvik , Alan Cox , Greg Kroah-Hartman , linux-cris-kernel , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" On 01/18/2013 02:38 PM, Jesper Nilsson wrote: > On Wed, Jan 16, 2013 at 11:30:44PM +0100, Cong Ding wrote: >> The pointer tty is dereferened in line 3135, so it is not necessary to check >> null again in line 3140. > > I don't know if we actually need to check the parameter tty from being null, > but when checking the rest of the file, most other functions don't check it. Yes, the check in unneeded. thanks, -- js suse labs