From: khalasa@piap.pl (Krzysztof =?utf-8?Q?Ha=C5=82asa?=) Date: Fri, 22 Jul 2016 10:16:00 +0000 Subject: Re: [PATCH] [media] tw686x-kh: Delete an unnecessary check before the function call "video_unregiste Message-Id: List-Id: 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> <289fc09c-8ccb-c3a9-e740-af06687e7121@users.sourceforge.net> In-Reply-To: <289fc09c-8ccb-c3a9-e740-af06687e7121@users.sourceforge.net> (SF Markus Elfring's message of "Sun, 17 Jul 2016 22:16:19 +0200") MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring Cc: linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Mauro Carvalho Chehab , Hans Verkuil , Greg Kroah-Hartman , LKML , kernel-janitors@vger.kernel.org, Julia Lawall SF Markus Elfring writes: > The video_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 > --- > drivers/staging/media/tw686x-kh/tw686x-kh-video.c | 3 +-- Thanks. -- Krzysztof Halasa Industrial Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland