From patchwork Tue Nov 24 01:58:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Tang X-Patchwork-Id: 7687191 X-Patchwork-Delegate: axboe@kernel.dk Return-Path: X-Original-To: patchwork-linux-block@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A77D2BF90C for ; Tue, 24 Nov 2015 02:08:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE41B20861 for ; Tue, 24 Nov 2015 02:08:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 37987207E7 for ; Tue, 24 Nov 2015 02:08:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752636AbbKXCIq (ORCPT ); Mon, 23 Nov 2015 21:08:46 -0500 Received: from n9-24.mail.139.com ([221.176.9.24]:58618 "EHLO n9-24.mail.139.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751568AbbKXCIq (ORCPT ); Mon, 23 Nov 2015 21:08:46 -0500 X-Greylist: delayed 588 seconds by postgrey-1.27 at vger.kernel.org; Mon, 23 Nov 2015 21:08:46 EST X-Richmail-Antispam: sCL2rVi0borhSzeOjpYxWEmrxqxSIjpgsIL2jVqxeZIR0RM= X-RM-SPAM-FLAG: 00000000 Received: from localhost (unknown[223.68.205.133]) by rmsmtp-rmapp-05-12021 (RichMail) with SMTP id 2ef55653c45ffd0-8bd30; Tue, 24 Nov 2015 09:58:56 +0800 (CST) X-RM-TRANSID: 2ef55653c45ffd0-8bd30 From: Wei Tang To: axboe@kernel.dk Cc: linux-block@vger.kernel.org, Wei Tang Subject: [PATCH v2 1/2] block: do not initialise globals to 0 or NULL Date: Tue, 24 Nov 2015 09:58:45 +0800 Message-Id: <1448330326-7646-2-git-send-email-tangwei@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1448330326-7646-1-git-send-email-tangwei@cmss.chinamobile.com> References: <1448330326-7646-1-git-send-email-tangwei@cmss.chinamobile.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl error to blk-exec.c: ERROR: do not initialise globals to 0 or NULL Signed-off-by: Wei Tang --- block/blk-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-core.c b/block/blk-core.c index 5131993b..9d3d574 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -51,7 +51,7 @@ DEFINE_IDA(blk_queue_ida); /* * For the allocated request tables */ -struct kmem_cache *request_cachep = NULL; +struct kmem_cache *request_cachep; /* * For queue allocation