Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757113AbaKTOms (ORCPT ); Thu, 20 Nov 2014 09:42:48 -0500 Received: from einhorn.in-berlin.de ([192.109.42.8]:40164 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756858AbaKTOmq (ORCPT ); Thu, 20 Nov 2014 09:42:46 -0500 X-Envelope-From: stefanr@s5r6.in-berlin.de Date: Thu, 20 Nov 2014 15:41:48 +0100 From: Stefan Richter To: SF Markus Elfring Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux1394-devel@lists.sourceforge.net, LKML , kernel-janitors@vger.kernel.org, Julia Lawall Subject: Re: [PATCH 1/1] [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" Message-ID: <20141120154148.724ab462@kant> In-Reply-To: <546DBA8E.6080401@users.sourceforge.net> References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <546DBA8E.6080401@users.sourceforge.net> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.24; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Nov 20 SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Nov 2014 10:49:07 +0100 > > The dvb_unregister_device() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Reviewed-by: Stefan Richter > --- > drivers/media/firewire/firedtv-ci.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/media/firewire/firedtv-ci.c b/drivers/media/firewire/firedtv-ci.c > index e5ebdbf..e63f582 100644 > --- a/drivers/media/firewire/firedtv-ci.c > +++ b/drivers/media/firewire/firedtv-ci.c > @@ -253,6 +253,5 @@ int fdtv_ca_register(struct firedtv *fdtv) > > void fdtv_ca_release(struct firedtv *fdtv) > { > - if (fdtv->cadev) > - dvb_unregister_device(fdtv->cadev); > + dvb_unregister_device(fdtv->cadev); > } -- Stefan Richter -=====-====- =-== =-=-- http://arcgraph.de/sr/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/