From patchwork Sun Dec 12 07:09:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 523588 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F296C433F5 for ; Sun, 12 Dec 2021 07:10:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbhLLHKG (ORCPT ); Sun, 12 Dec 2021 02:10:06 -0500 Received: from smtpbg604.qq.com ([59.36.128.82]:50672 "EHLO smtpbg604.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbhLLHKF (ORCPT ); Sun, 12 Dec 2021 02:10:05 -0500 X-QQ-mid: bizesmtp37t1639292961t1w89zs7 Received: from localhost.localdomain (unknown [182.132.179.213]) by esmtp6.qq.com (ESMTP) with id ; Sun, 12 Dec 2021 15:09:20 +0800 (CST) X-QQ-SSF: 01000000002000D0I000B00A0000000 X-QQ-FEAT: F3yR32iATbj57DaptpeFQ4FzHbrVAl8VVOYapPxMBhc2Ndb2XA/ZWJhfN0WSh UU6eBdyOxRKupU1xNB2jrAsbp03hqRd1HeKhKrOGfnc6zRrSGwGhTVzj/Kjul2cgfVg9u+E Tr1LX1V/GbRN75rfzo97FaPSC7pw2jHtfoSdnrPtm9ik4uY/kYn5viWalbwsmuSpGrrtNMY iKYVbSGajYuDEANWoniIqJufMiMTgPw9K2AuvtanwnwcJPAGfNex8ZsQFm1Alp/5r5P9UzA lPjSleBmzfgm/Y9UiNmhXCbBVKGts8iof2+/TIbe2XEW/FVuhCu7/za1hU4Ns6544vkeyLK omEmMIt74lgPAzM6STSe/RpFFu2AQjfvAWcbTDCp52Sf0e+388= X-QQ-GoodBg: 0 From: Jason Wang To: mchehab@kernel.org Cc: awalls@md.metrocast.net, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Wang Subject: [PATCH] media: ivtv: no need to initialise statics to 0 Date: Sun, 12 Dec 2021 15:09:18 +0800 Message-Id: <20211212070918.289617-1-wangborong@cdjrlc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybgspam:qybgspam4 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations. Signed-off-by: Jason Wang --- drivers/media/pci/ivtv/ivtvfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/ivtv/ivtvfb.c b/drivers/media/pci/ivtv/ivtvfb.c index 2c43ebf83966..00ac94d4ab19 100644 --- a/drivers/media/pci/ivtv/ivtvfb.c +++ b/drivers/media/pci/ivtv/ivtvfb.c @@ -42,7 +42,7 @@ /* card parameters */ static int ivtvfb_card_id = -1; -static int ivtvfb_debug = 0; +static int ivtvfb_debug; static bool ivtvfb_force_pat = IS_ENABLED(CONFIG_VIDEO_FB_IVTV_FORCE_PAT); static bool osd_laced; static int osd_depth;