Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp569861pxk; Wed, 9 Sep 2020 12:43:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTtK/B6rAc8Q+PwkUnlM+i0ZDQWHTTx9/9B8WNOULpr45KOedvB/77EGPaotiEcp5RbNJy X-Received: by 2002:aa7:cd5a:: with SMTP id v26mr5578819edw.38.1599680609864; Wed, 09 Sep 2020 12:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599680609; cv=none; d=google.com; s=arc-20160816; b=xCjjpxPfgvlCEoQegnSdICxUsd9CUbdsi4Lr0r6cG2V4zpWT9sm4ypEXQpmpYCXSyO uvA1CxL4vwYEb2asbJ1caaQoYzmf9bGlZp253m0CY5HeZiAMbH80BBFDXAC/8dAHvb6a FIzTya5s1ZNIymb8sWx1u9+jGiX7JkCccnBPAAmLuh24LDB0uEwF3fn3Tjvc9hC+8Je7 WuSEO9R+IEUC0Bvf2IyCKNSUlIRkVD+bvniqr8IS548bekm8IjYXzDfb31SiKx8P1o45 71SF+bJ04wYCcdK6gATpMpr3/F4UfLboZbYkbljz5+WTXlCWN5HZyUGs9PjtiGAno/JZ SbGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=7XrmoZ2BYly3f5uTpv031CSkAY88yc/On/yMOgU2Hd4=; b=ZFMJ8pjpAuQCiRLpnpD2TvvAAKyqk/K+AqfSLMQpdJtSdA07Ltc3EHZM4NYEL0PfRL PfzjAmWehiGVd+i7+hxWtiMQpF1EPISwh5Jd3GwoJuTZvplMRIf4JOsPvxa4+glRGLyu grbrca2NEXnrnouQVz1BjDcQPrLrLQ6QOG+13aTtiDf36HT4ML1MyKbD47L8IRyPaAg2 qy/9dkZKerjCs+Lxp1OXPG3Ar9tQ0eJYWWzfTTDuSMXu+AYKzilj6HLhIdO/5b8izfIF Tte4gDO9khGVV5mLBuXhSrcgIRj1POH4GM83+cC5T3kFGrN+XPvPXXzbRzeS77fdlYF4 +eRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UEQEt0vi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f23si2021569edw.461.2020.09.09.12.43.06; Wed, 09 Sep 2020 12:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UEQEt0vi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbgIITlk (ORCPT + 99 others); Wed, 9 Sep 2020 15:41:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725772AbgIITlj (ORCPT ); Wed, 9 Sep 2020 15:41:39 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D876C061573 for ; Wed, 9 Sep 2020 12:41:39 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id g4so4214230wrs.5 for ; Wed, 09 Sep 2020 12:41:39 -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:mime-version :content-transfer-encoding; bh=7XrmoZ2BYly3f5uTpv031CSkAY88yc/On/yMOgU2Hd4=; b=UEQEt0viSrmmWl85zt2NVLgJjfkwH9EqFEr8VF54y2KvOTiW2yENFKBx/Ekpdoi7YO FO41CUYAoDI43CaHOvNAmKcdYumD0ozGr9o2iVNKEMoPt97OAkCcTPpTNilhKt39o/aZ 0DAEQe1E4c7NaBt7bsB1j9Q/gfZzgOhfk2a98WBdIMYOAt/MlwpnaSLGkOEYKiLQfAT6 cVLd2qGrZZJ3O2+BV9vTDWc7s7ixsaiNsypvMF5d/dQGdRosDcn1wUjGyLXRXR6b+DhH aRUw46uLc5nUEpTg3WKRk9Rmrh9KvDwEh5eY1np9BOmAvEdH1/29HHH3xoHa+Wbp3SK2 i5uA== 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:mime-version :content-transfer-encoding; bh=7XrmoZ2BYly3f5uTpv031CSkAY88yc/On/yMOgU2Hd4=; b=e+W4XypJaxkVapbZAjtoNY5gP/4DcqDOgrev/StEKDwW43vyk7162+prCLz9oaqXcK uXNcHAlD3/YhgCsjrwy9Nf5DA1GoQO3g1hMc/SOipQcMSyNyXMssdkA9Y0gQ5ZlxJPyE FRMMJPaagY7VJktn0ywwo/PRXbdgJsQV5+rnmZlAO39ToX4wZW1vEEn+/Wc0Ju9MZ5U8 Y7gUG53Lc4ek7MGeIrcK8VcpAa+qjn+y0ykaOsAg30G3x3qS8BctHr6wIOmIV3AVXa0j U35TUBlOh+LeJeXL3/cSL9CwI4qDPmLzgSLjE/0zVJy1D2wzfyqMaB3ZHM2DbYIL2NBc vhWg== X-Gm-Message-State: AOAM532B9uwNuJgQ7e8fSqgi9Jsy9eyoGIyyDZr474rB9lrPguR7MgO/ fWECtk+ehFmDtbsKoBw6sMM= X-Received: by 2002:adf:828e:: with SMTP id 14mr5810669wrc.217.1599680496578; Wed, 09 Sep 2020 12:41:36 -0700 (PDT) Received: from localhost.localdomain (cpc83661-brig20-2-0-cust443.3-3.cable.virginm.net. [82.28.105.188]) by smtp.gmail.com with ESMTPSA id w7sm5633947wrm.92.2020.09.09.12.41.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 12:41:36 -0700 (PDT) From: Alex Dewar Cc: Alex Dewar , Evgeniy Polyakov , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] w1: Remove pointless debug code Date: Wed, 9 Sep 2020 20:41:32 +0100 Message-Id: <20200909194132.212925-1-alex.dewar90@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It doesn't seem obvious why zeroing sl before freeing it would help with debugging, so just remove this code. Signed-off-by: Alex Dewar --- drivers/w1/w1.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index 4f597b0fd1da..02a0e66144a4 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -801,9 +801,6 @@ int w1_unref_slave(struct w1_slave *sl) w1_family_notify(BUS_NOTIFY_DEL_DEVICE, sl); device_unregister(&sl->dev); - #ifdef DEBUG - memset(sl, 0, sizeof(*sl)); - #endif kfree(sl); } atomic_dec(&dev->refcnt); -- 2.28.0