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 picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AF7CDC433F5 for ; Wed, 16 Feb 2022 09:07:25 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 20FEF3CA06D for ; Wed, 16 Feb 2022 10:07:23 +0100 (CET) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 0807F3C9564 for ; Wed, 16 Feb 2022 10:07:12 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 357591000947 for ; Wed, 16 Feb 2022 10:07:11 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 64D401F383; Wed, 16 Feb 2022 09:07:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1645002431; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kHucTTzQSfyAnoB5BxZuEsXweg7lQr+r3nVxwZ0622c=; b=RmRvmiIzDDk23LLDqFzAS6h36+zYtm4/Y4i/cRMyW5j5c13Zy+6vWbgoDPhxD024OIqGjx iUgbMaXbutonMflOTKIkKkTa/FgVmyOZ8fdCfQ72UkRz3vpK7dEMtvhYbVDA+u61veA9w2 8GpP9NwJt7FWOH9vkgwdbnx07Leudt4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1645002431; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kHucTTzQSfyAnoB5BxZuEsXweg7lQr+r3nVxwZ0622c=; b=D9E/j16/rET+MnCvu2v5SJKpCZPgMFMr/fSrr1kDR3YcV1SMT2JdR+SCSYow4AHocfr5BV qFMs9JDm9p2pisCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1E0A213A95; Wed, 16 Feb 2022 09:07:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id C/yyBL++DGJXYwAAMHmgww (envelope-from ); Wed, 16 Feb 2022 09:07:11 +0000 From: Bogdan Lezhepekov To: ltp@lists.linux.it Date: Wed, 16 Feb 2022 11:07:08 +0200 Message-Id: <20220216090708.29588-1-blezhepekov@suse.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH v1] ltpfs/main.c: Initialize return variable X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" LTP_fs_open_block_device returned initialized local variable, when device handler is occupied. Signed-off-by: Bogdan Lezhepekov --- testcases/kernel/fs/scsi/ltpfs/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/kernel/fs/scsi/ltpfs/main.c b/testcases/kernel/fs/scsi/ltpfs/main.c index dc3e8f30c..2c67c7a47 100644 --- a/testcases/kernel/fs/scsi/ltpfs/main.c +++ b/testcases/kernel/fs/scsi/ltpfs/main.c @@ -391,7 +391,7 @@ int LTP_fs_open_block_device() { dev_t devt; struct stat statbuf; - int rc; + int rc = 0; if (ltp_block_dev_handle == 0) { -- 2.35.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp