From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DE2BF33F374 for ; Thu, 5 Mar 2026 10:28:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772706493; cv=none; b=O5JDvBx1plIy5NnPa3GK935Rt38KlUGZcaIU+AzUxjE4iKrWR8dLHpr7cy1dn+9PS9PqKQg4pu+4LBs0m8edYhMInz3dqhR3jrggioImAm40urHhkV0J2JSxt6bKcZB6GDhG/Hb/kfxKV7BMYcfYZlCsdPLYpcX/2k9YipftqU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772706493; c=relaxed/simple; bh=iZKg9PIgY/V5M1XjvYPb+eY2D8AuPtt5AIwxFkci2m4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jZwB4nF9EkqnkaiLHp8WJo3QA3un3rl9cWl5lAyfUiSnJOIN5eJN36tPII/f9Yiub9toaflLS878hgnG86ebmYhQ3jOWTCBEJeY2ctN6q9ePmUO7QwxirxMfxvebDHZXZ1W4zX5eUcLYFprcmh8dfEjOKsV/6zauob7+rhkUz/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Yiuz9QrK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Yiuz9QrK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61F67C116C6; Thu, 5 Mar 2026 10:28:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772706493; bh=iZKg9PIgY/V5M1XjvYPb+eY2D8AuPtt5AIwxFkci2m4=; h=From:To:Cc:Subject:Date:From; b=Yiuz9QrKAOjCOJ9UugwZl0m0ZsnucNPRudWqMQB97rwyCVu0i88BRGhGiWtdIzPXt ylrXdl6LALQ18bDZ6UPLd8/ETqYXlFneV3HywM8gbbeOrpX3y1Y+8ToLuxvekb63ky m0Xu7S1j0gNeMb09B4Q3t5wwE34YrDO0IW6WoKAbx5BTuAjwK1ZMBbN0zGVd22QDX8 HXtJQ6sjzIvMPE9vsJnbCGzWv/VxRAzJ8osF5gSa1Fb0N11WnIC/TPIlUzYBv3hvOm kf8mJykwOkv7HYLs5JytHRPzvu48/75HkKXFoI5uY+4nPt6NQB6a1UEIlBXKXgp1Ua nDLuNpKaid67w== Received: from johan by xi.lan with local (Exim 4.98.2) (envelope-from ) id 1vy5wB-0000000038d-0C8x; Thu, 05 Mar 2026 11:28:11 +0100 From: Johan Hovold To: Dave Penkler Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 0/2] gpib: drop redundant device reference Date: Thu, 5 Mar 2026 11:27:43 +0100 Message-ID: <20260305102745.12032-1-johan@kernel.org> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Driver core holds a reference to the USB interface and its parent USB device while the interface is bound to a driver and there is no need to take additional references unless the structures are needed after disconnect. Drop the redundant device reference to reduce cargo culting, make it easier to spot drivers where an extra reference is needed, and reduce the risk of memory leaks when drivers fail to release it. Johan Johan Hovold (2): gpib: agilent_82357a: drop redundant device reference gpib: ni_usb: drop redundant device reference drivers/gpib/agilent_82357a/agilent_82357a.c | 5 +---- drivers/gpib/ni_usb/ni_usb_gpib.c | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) -- 2.52.0