From patchwork Thu Apr 23 09:56:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Firo Yang X-Patchwork-Id: 6261311 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B24D39F389 for ; Thu, 23 Apr 2015 09:56:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D632820383 for ; Thu, 23 Apr 2015 09:56:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17B1520303 for ; Thu, 23 Apr 2015 09:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756930AbbDWJ4z (ORCPT ); Thu, 23 Apr 2015 05:56:55 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:35047 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932168AbbDWJ4p (ORCPT ); Thu, 23 Apr 2015 05:56:45 -0400 Received: by pabli10 with SMTP id li10so4538630pab.2; Thu, 23 Apr 2015 02:56:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Qbkr4nVDZVvLLUMcNKr5fVOTRnI1CWCoV5/3+ON/Jjg=; b=bbDx9DVh0IZh+Xt2tAQ64nt7Gk3S880eulQEwL6Cd7Jaey1mDpp4iQATzwOCP8tCW9 t/3bVUfrLU4fbbMeP6ErW1nR6WRqGC6seVaglKH/3eljWlPTa5iJGWMQvldIb6zWi20q t2ybjDQsiOXVSuO/AXlxhZwR6CeimgADmMBPGNPWcjPRINILKJAaDX3N8mDggvbP1bDF nl0+OfcQl1H/b9JgqFF9NYioHpTgFMLKITGGlMblyDujWjPUgLQk8kjKFtgVPkbvSBPo Hnq553qISvAQ6/7RL0mSwcYrJNiLfW1O6nMcC1Bz1k/gzo1GWZ082TFBQ8y0Aoo8FcaA G7Kw== X-Received: by 10.69.25.41 with SMTP id in9mr3789502pbd.80.1429783005192; Thu, 23 Apr 2015 02:56:45 -0700 (PDT) Received: from localhost (138.128.195.217.16clouds.com. [138.128.195.217]) by mx.google.com with ESMTPSA id dc8sm7605239pdb.23.2015.04.23.02.56.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Apr 2015 02:56:44 -0700 (PDT) From: Firo Yang To: don.brace@pmcs.com, JBottomley@odin.com Cc: kernel-janitors@vger.kernel.org, linux-scsi@vger.kernel.org, Firo Yang Subject: [PATCH] hpsa: Remove unnessary cast Date: Thu, 23 Apr 2015 17:56:37 +0800 Message-Id: <1429782997-6794-1-git-send-email-firogm@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP kmalloc() returns a void pointer - no need to cast it in drivers/scsi/hpsa.c::hpsa_big_passthru_ioctl() Signed-off-by: Firo Yang --- drivers/scsi/hpsa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 8eab107..e7d3444b 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -4992,8 +4992,7 @@ static int hpsa_big_passthru_ioctl(struct ctlr_info *h, void __user *argp) return -EINVAL; if (!capable(CAP_SYS_RAWIO)) return -EPERM; - ioc = (BIG_IOCTL_Command_struct *) - kmalloc(sizeof(*ioc), GFP_KERNEL); + ioc = kmalloc(sizeof(*ioc), GFP_KERNEL); if (!ioc) { status = -ENOMEM; goto cleanup1;