From patchwork Sun Aug 20 12:59:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Scheller X-Patchwork-Id: 9911143 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79E97600C8 for ; Sun, 20 Aug 2017 12:59:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C0931FF2D for ; Sun, 20 Aug 2017 12:59:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61063285E1; Sun, 20 Aug 2017 12:59:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 224AA1FF2D for ; Sun, 20 Aug 2017 12:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752952AbdHTM7S (ORCPT ); Sun, 20 Aug 2017 08:59:18 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33544 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbdHTM7Q (ORCPT ); Sun, 20 Aug 2017 08:59:16 -0400 Received: by mail-wr0-f194.google.com with SMTP id 30so1072371wrk.0 for ; Sun, 20 Aug 2017 05:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UNv3blI3r3J4EZsYkeSaZjBmRmS2gAIVGWpWL/OuiTE=; b=BA/WCcfABq8S5GlcEg8B9R1hr3nll0G2tyF5lINXXltdW26aq7A0FPRciZyEMic8pc 0QJL3zGpVuBRSm27uAxGAH/ioF7jL78SuoWpl5vLMdBSfHUKgiuK/hOIHLiQ8d+k4qA2 u6JV4lBcB7B1idnot7yJ3tany49gr3EQcfV3YFFA5koWvyuuDGHmQbYWZhtLRvIrHG/C rXx0fztJy5YSG2sn8z4t8s7kfkN6gULb6hiCuYiEEFZ0AyUG5+sg2uKJuubRLd4591jq 9a7HLrMK7W62clVbPikAgExrRUh7lzCKSYM21+w2pEjKMOWzSI6zohKBTuCSTdR6S3Pb 1rmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UNv3blI3r3J4EZsYkeSaZjBmRmS2gAIVGWpWL/OuiTE=; b=CXVQGN8f/qiG5aeahfkbvtCjDn07rT+zz0mu/fwKsg2OLGGjIq2Ngt5/ZJoltypwmy D2l+drtrNEo3Y+as7zLxAgb5xEHqaCLtbQc1P5KKBJJa/kezyefO2xrM+8R+97DMc4Pf 2v4QemOzH4gCC9rBEQT+DFO+dIuzsNl6MrKt70oKTrdt5sZe5UALEYgKkAc8BXVatAgM NN0yTjNwtIy16CDk9shNYLAuHI1jwYHoVY5ywtA9e5HiU82SJ+CKPqcyhWT25fxRXhlR oYPDljd+RRjBXa7ZJ7MbLAFGxDb0ajhB4cFSLobdthn+N8F74gyWZZg+J10kvG4ZO2i+ 74Dg== X-Gm-Message-State: AHYfb5h5bzy0Baio9+aTjxFDJXQeyhZ9g13e0asITXuOdlCaX88L0/rw NHmZKNLee9d9kkiF X-Received: by 10.28.1.18 with SMTP id 18mr4204760wmb.57.1503233955288; Sun, 20 Aug 2017 05:59:15 -0700 (PDT) Received: from dvbdev.wuest.de (ip-84-118-193-88.unity-media.net. [84.118.193.88]) by smtp.gmail.com with ESMTPSA id o24sm7630428wmi.8.2017.08.20.05.59.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Aug 2017 05:59:14 -0700 (PDT) From: Daniel Scheller To: linux-media@vger.kernel.org, mchehab@kernel.org, mchehab@s-opensource.com Cc: jasmin@anw.at Subject: [PATCH 2/2] [media] dvb-frontends/stv6111.c: return NULL instead of plain integer Date: Sun, 20 Aug 2017 14:59:12 +0200 Message-Id: <20170820125912.9716-3-d.scheller.oss@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170820125912.9716-1-d.scheller.oss@gmail.com> References: <20170820125912.9716-1-d.scheller.oss@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Scheller Fixes: stv6111.c:665:24: warning: Using plain integer as NULL pointer Signed-off-by: Daniel Scheller --- drivers/media/dvb-frontends/stv6111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/stv6111.c b/drivers/media/dvb-frontends/stv6111.c index 9a59fa318207..e3e90070e293 100644 --- a/drivers/media/dvb-frontends/stv6111.c +++ b/drivers/media/dvb-frontends/stv6111.c @@ -669,7 +669,7 @@ struct dvb_frontend *stv6111_attach(struct dvb_frontend *fe, fe->ops.i2c_gate_ctrl(fe, 0); if (stat < 0) { kfree(state); - return 0; + return NULL; } fe->tuner_priv = state; return fe;