From patchwork Fri Mar 17 11:15:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volker Lendecke X-Patchwork-Id: 1758202 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (3072-bit key; secure) header.d=samba.org header.i=@samba.org header.a=rsa-sha256 header.s=42 header.b=OJpGi4up; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4PdM4w6JyCz1yWp for ; Fri, 17 Mar 2023 22:16:00 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229494AbjCQLP5 (ORCPT ); Fri, 17 Mar 2023 07:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbjCQLPz (ORCPT ); Fri, 17 Mar 2023 07:15:55 -0400 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE13746AD for ; Fri, 17 Mar 2023 04:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=Message-Id:Date:Cc:To:From; bh=Uf8nP0x72lU0LWG3wz/upIc80VUCQ9OuKnarTqW+sTc=; b=OJpGi4uprQcOuPOffzkF2Sun3L M89ayeMaQSKvmk2NadsOOaPvhMSvY5jDdDe/pBzhzpxxQ3015MtB+qB0VU003pvcxKiIy1pkBjPab iqussPCqoqaP84jIlFsUqQ00H9GE3ljPHk7sU1+tp3CJBX9zhh9AcoC6n61rvRa2Sz9JUZqtvidhq KfhVkzv/XIMX6UP2LJK4PHM0dkbHh7wsQoSpNnJVOtaUJ3Ej1323CmLZV7+jP5Efn5sU2VwecoT8n O/m5DjcFdymtx+4ATCkv1sFVmoKHb4nQOxySb5elnfkbYUvNcj3BrD5RESW2vpkxthJ4E80PbHQtk We9h5sZme/2OG6ztZqFLlQy9AIt2+ML1Si6LLA1/9KVPJnXpLrg8pVcR9vlIa8gINdydrDbjEWKPN aXLjp2RqPFRbSb8M91oGRCrPOSiIe70KiUZp+/Cscc+5Mvx+iMKpmnj7m3efZcUjfELmA7NGKwPgM dP+7kpgh9oDNpndu+260Qmnv; Received: from [2a01:4f8:252:410e::177:224] (port=37520 helo=atb-devel-224..) by hr2.samba.org with esmtp (Exim) id 1pd83n-003p4x-Lh; Fri, 17 Mar 2023 11:15:47 +0000 From: Volker Lendecke To: linux-cifs@vger.kernel.org Cc: Volker Lendecke Subject: [PATCH 0/7] Avoid a few casts from void * Date: Fri, 17 Mar 2023 11:15:21 +0000 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org We should not go through void * without type-checking if it's not really necessary. Volker Lendecke (7): cifs: Avoid a cast in add_lease_context() cifs: Avoid a cast in add_durable_context() cifs: Avoid a cast in add_posix_context() cifs: Avoid a cast in add_sd_context() cifs: Avoid a cast in add_durable_v2_context() cifs: Avoid a cast in add_durable_reconnect_v2_context() cifs: Avoid a cast in add_query_id_context() fs/cifs/smb2pdu.c | 55 ++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 25 deletions(-)