From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 124A33CF44 for ; Fri, 19 Jan 2024 13:32:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705671125; cv=none; b=sP1juOqiH41kFhp0IXFq7XqRT2oShE+N4QeWwFh2vzZpKOpdrH6HcmFvpzYB21xPc63/kyWebdP4gVAr1FkZn40pN6AMo1ja5bt47Kan3qaQSz/TMA0u8W4xKt7Y8R8UxPFfpPFiJXyiBeVzZd1RB/q3Djkrd38gqRPCBXOwAM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705671125; c=relaxed/simple; bh=qn1UEj4b4CJ3B1rB43GSf3OHYzLVZsZcT18U3Kng7t8=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=GRIPRhB2J5wA498xLygyefhI2iVZfKGRmEvQIZYYEXZ581xIJJLawUhZ7BcG9CxGQk3MK0uaXydqjND2rdUFHZPoLBhEwbFSBWhT5qgptTLODJLrJ+pymq4mzbEu5EMzd/JhzwkFh72yQgr85KVu2rhWdCo8XwfakNUpG9BTduQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FCewUPXH; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FCewUPXH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705671123; x=1737207123; h=date:from:to:cc:subject:message-id:mime-version; bh=qn1UEj4b4CJ3B1rB43GSf3OHYzLVZsZcT18U3Kng7t8=; b=FCewUPXHVz8Rkz16ZhzjncfKuHP9++cro0JO17KDUgPKcFbAJx68NBv+ 2CSqsrdh5ZCXtXIepfyfmfqGwbQJ2E7Zx/YBrP4naIXGRAk0mGIuKkMks FJb0X/lq1Q73zQerCg0CtH2fZKPjSqQ3sLKi/AtwY2Y5GQ3vpmuzzGUef NI5DJWVrDIIQ7sy5IY357PgcGPGB2iBayljFsy4uCPW08sp3fGnoFYFTr 0FmbgOtsEwPpxzmXs8/p1CnhswvR2il3cuA6NaDEWvx4yqAy7IvmLl7Ej G7pdkwydXS+B0Or/RQB+KeDhEuWODbFj2UHp4plm9hucfkbMXNDkn4v4p A==; X-IronPort-AV: E=McAfee;i="6600,9927,10956"; a="14101336" X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="14101336" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2024 05:32:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,204,1701158400"; d="scan'208";a="33395987" Received: from lkp-server01.sh.intel.com (HELO 961aaaa5b03c) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 19 Jan 2024 05:32:03 -0800 Received: from kbuild by 961aaaa5b03c with local (Exim 4.96) (envelope-from ) id 1rQoyW-000460-03; Fri, 19 Jan 2024 13:32:00 +0000 Date: Fri, 19 Jan 2024 21:31:24 +0800 From: kernel test robot To: Kent Overstreet Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org Subject: fs/bcachefs/bkey_methods.c:46:5-8: Unneeded variable: "ret". Return " 0" on line 53 Message-ID: <202401192156.IvrA7iSY-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 9d1694dc91ce7b80bc96d6d8eaf1a1eca668d847 commit: b65db750e2bb9252321fd54c284edd73c1595a09 bcachefs: Enumerate fsck errors date: 3 months ago config: hexagon-randconfig-r061-20240117 (https://download.01.org/0day-ci/archive/20240119/202401192156.IvrA7iSY-lkp@intel.com/config) compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 9bde5becb44ea071f5e1fa1f5d4071dc8788b18c) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401192156.IvrA7iSY-lkp@intel.com/ cocci warnings: (new ones prefixed by >>) >> fs/bcachefs/bkey_methods.c:46:5-8: Unneeded variable: "ret". Return " 0" on line 53 fs/bcachefs/bkey_methods.c:219:5-8: Unneeded variable: "ret". Return " 0" on line 229 vim +46 fs/bcachefs/bkey_methods.c 42 43 static int empty_val_key_invalid(struct bch_fs *c, struct bkey_s_c k, 44 enum bkey_invalid_flags flags, struct printbuf *err) 45 { > 46 int ret = 0; 47 48 bkey_fsck_err_on(bkey_val_bytes(k.k), c, err, 49 bkey_val_size_nonzero, 50 "incorrect value size (%zu != 0)", 51 bkey_val_bytes(k.k)); 52 fsck_err: > 53 return ret; 54 } 55 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki