Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1454859pxa; Thu, 20 Aug 2020 11:42:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPc6C8wJ8hdRG6vLPwBjHhTWGRUQM5aFhWPliLElqU3qOLgGdW9EwhQccB0/MgiTvzLnwW X-Received: by 2002:a05:6402:1d25:: with SMTP id dh5mr4119353edb.266.1597948971727; Thu, 20 Aug 2020 11:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597948971; cv=none; d=google.com; s=arc-20160816; b=Mb4aEVtokyrmy3sV0WsEuod/jfml5e+7hS7eSFAUJACbs20rkUAz3CX/7cMDap26V9 q/zTKa0Qb+J/ssrfnU7ZGMc350HZTnShx0cCLHogqA54pfC2QO+CJPHaAEhGWy8uxzIZ 6lyGH951jZ0gOQ+SQyufXlWj51RwVWApqEh7qNBhNkhbuFBtG92pROJ1SygEjz2dDwhw NhJ/ReDydRJsvpLGhWxZ5Z5KmnoofsCNXpuAvL8rRW3G1p9ROyJHAgWhcsGpIq7XDIAv a+CH4/3kGWqtfJekWq2uGazhXS94ZQxNTVXELZScX6hPrEuGnCYAKpQCXgeFOgbHJWQt mswA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=PgRf0Ar5MulFcCJvaCQyug2lmRa/ai0OZaAGSl3iEgY=; b=twdE5iJwvDJPrp2187MRO3lOt7Lfh0vYCj2d8kY+YDsxdDHIKC6fLcojHS7G5Q15Ak liFEzbjvYeUuVL6wELhQOVrf4kTYbL1Jc5fSnZSzLqw7FizREivux/EmdzcHr7bw9Sz2 8QmjDOtrPV7vDWcxMvDlACajmenL1uANgRKQCF+amtILnbvBPMLfOnlxaLQmRr27v43G NozascWq9m7xw5tYvl55iKf6pPtYISOI9XZ/1IbPpJQPpvfdKaeKVB/UDj2DMZQLYRM4 jPgp5CAQLyertWMI60/yThm54A7YjX8x9u39rcGxhRoxGU9hDUiMcbh7PLzHi3eTkQki BLNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H4hYkwVV; 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=pass (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 x4si1732058eju.496.2020.08.20.11.42.27; Thu, 20 Aug 2020 11:42:51 -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=pass header.i=@gmail.com header.s=20161025 header.b=H4hYkwVV; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727884AbgHTSi7 (ORCPT + 99 others); Thu, 20 Aug 2020 14:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727012AbgHTSi5 (ORCPT ); Thu, 20 Aug 2020 14:38:57 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0A6FC061385; Thu, 20 Aug 2020 11:38:56 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id 83so264198wme.4; Thu, 20 Aug 2020 11:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PgRf0Ar5MulFcCJvaCQyug2lmRa/ai0OZaAGSl3iEgY=; b=H4hYkwVVPQYi9sO0a0/uLgOj8mXjpo7sKsrsj0dTHZy/XBHYoiNaAXeTSx/OL5Wlx3 dBrNi4aPjLVP+/AEvLkeoPT8OQJ8dZYUjPKUo0Y+ugsDL0vs1NBSj0gESCIgYO8hF/bC Hycyy9kkoy6tGRRv2l1Wutk7sQ0lxJfrUtY+bTvYyI35YZ75rT2nUbAUg5TMNQ/kjjlY 4wa5aXdTpnQyL7DVapgmwaBwOdsTo7iI+DYqXBQr6ITMBpItHvHL5jf6QB8UgyQ1UwHU tMoLD6WXbHU/w5yoAwWnbNSnfrTg5jUpyAV69BPvyoZvjMNyIjghUisXzRNWxHPpNObD dXag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=PgRf0Ar5MulFcCJvaCQyug2lmRa/ai0OZaAGSl3iEgY=; b=oiIU52eQs5HV2nXWJfi0D9//59ktOYDDWyj0yeVJsD0Cu9z2SHh0kGOiHpZQ+yDSZ8 jAz7gwZoPksyj6ADKLONovnltxZ9+sWTKHJsK62tEFRGxAGM45wzKNX2X2nAMFJtobvV lQ6BYRVMgCy9gP6rEBjkGG0ZnT4qfxUjySaclvRg2vVQ5aU7z0ABxlpJJs4UOe/U/Dkk TtaroDLTpvFrsb4cfnUdxDoaWh8N5UqEePwboZXSwUZF+JY9/L/fzJBQneoUhLAPWFPM VUOiiNhLEU4RztIbBQHVDe1XmJssJYrEUoFI0+4BmlT90iA5QjZbhq+J0K/z49Q/MyUK B0Ug== X-Gm-Message-State: AOAM5334l8paN11cSMqL3EOdLC6tvoeSQoGmyFH5C6TfNU283OmRjlHx DEmlEMQgo1NBH6efB5LrAwGnzloTQEJZN8yr X-Received: by 2002:a1c:9a02:: with SMTP id c2mr52135wme.16.1597948735669; Thu, 20 Aug 2020 11:38:55 -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 b139sm6147232wmd.19.2020.08.20.11.38.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2020 11:38:55 -0700 (PDT) From: Alex Dewar To: Alex Dewar , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nfc: st21nfca: Remove unnecessary cast Date: Thu, 20 Aug 2020 19:38:36 +0100 Message-Id: <20200820183840.912558-1-alex.dewar90@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In st21nfca_connectivity_event_received(), the return value of devm_kzalloc() is unnecessarily cast from void*. Remove cast. Issue identified with Coccinelle. Signed-off-by: Alex Dewar --- drivers/nfc/st21nfca/se.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nfc/st21nfca/se.c b/drivers/nfc/st21nfca/se.c index 6586378cacb0..c8bdf078d111 100644 --- a/drivers/nfc/st21nfca/se.c +++ b/drivers/nfc/st21nfca/se.c @@ -315,8 +315,7 @@ int st21nfca_connectivity_event_received(struct nfc_hci_dev *hdev, u8 host, skb->data[0] != NFC_EVT_TRANSACTION_AID_TAG) return -EPROTO; - transaction = (struct nfc_evt_transaction *)devm_kzalloc(dev, - skb->len - 2, GFP_KERNEL); + transaction = devm_kzalloc(dev, skb->len - 2, GFP_KERNEL); if (!transaction) return -ENOMEM; -- 2.28.0