Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764435AbZDHL0P (ORCPT ); Wed, 8 Apr 2009 07:26:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758599AbZDHLWt (ORCPT ); Wed, 8 Apr 2009 07:22:49 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:54770 "EHLO out2.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762769AbZDHLWn (ORCPT ); Wed, 8 Apr 2009 07:22:43 -0400 X-Sasl-enc: foSTmaz/Nz4lCPQ4aUrmKyEOUfgjFaoojeJ2xi+TiOjc 1239189761 From: Jack Stone To: linux-kernel@vger.kernel.org Cc: jeff@garzik.org, kernel-janitors@vger.kernel.org, Jack Stone Subject: [PATCH 08/56] cris: Remove void casts Date: Wed, 8 Apr 2009 12:21:40 +0100 Message-Id: <1239189748-11703-9-git-send-email-jwjstone@fastmail.fm> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <1239189748-11703-8-git-send-email-jwjstone@fastmail.fm> References: <> <1239189748-11703-1-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-2-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-3-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-4-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-5-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-6-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-7-git-send-email-jwjstone@fastmail.fm> <1239189748-11703-8-git-send-email-jwjstone@fastmail.fm> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2324 Lines: 48 Remove uneeded void casts Signed-Off-By: Jack Stone --- arch/cris/arch-v32/drivers/cryptocop.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/cris/arch-v32/drivers/cryptocop.c b/arch/cris/arch-v32/drivers/cryptocop.c index 67c61ea..5d20327 100644 --- a/arch/cris/arch-v32/drivers/cryptocop.c +++ b/arch/cris/arch-v32/drivers/cryptocop.c @@ -2455,7 +2455,7 @@ static int map_pages_to_iovec(struct iovec *iov, int iovlen, int *iovix, struct DEBUG_API(printk("map_page_to_iovec: *pageix=%d >= nopages=%d\n", *pageix, nopages)); return 0; } - iov[*iovix].iov_base = (unsigned char*)page_address(pages[*pageix]) + *pageoffset; + iov[*iovix].iov_base = page_address(pages[*pageix]) + *pageoffset; tmplen = PAGE_SIZE - *pageoffset; if (tmplen < map_length){ (*pageoffset) = 0; @@ -2780,16 +2780,16 @@ static int cryptocop_ioctl_process(struct inode *inode, struct file *filp, unsig size_t tmplen = cop->tfrm_op.inlen; cop->tfrm_op.indata[0].iov_len = PAGE_SIZE - ((unsigned long int)(oper.indata + prev_ix) & ~PAGE_MASK); - cop->tfrm_op.indata[0].iov_base = (unsigned char*)page_address(inpages[0]) + ((unsigned long int)(oper.indata + prev_ix) & ~PAGE_MASK); + cop->tfrm_op.indata[0].iov_base = page_address(inpages[0]) + ((unsigned long int)(oper.indata + prev_ix) & ~PAGE_MASK); tmplen -= cop->tfrm_op.indata[0].iov_len; for (i = 1; itfrm_op.indata[i].iov_len = tmplen < PAGE_SIZE ? tmplen : PAGE_SIZE; - cop->tfrm_op.indata[i].iov_base = (unsigned char*)page_address(inpages[i]); + cop->tfrm_op.indata[i].iov_base = page_address(inpages[i]); tmplen -= PAGE_SIZE; } } else { cop->tfrm_op.indata[0].iov_len = oper.inlen - prev_ix; - cop->tfrm_op.indata[0].iov_base = (unsigned char*)page_address(inpages[0]) + ((unsigned long int)(oper.indata + prev_ix) & ~PAGE_MASK); + cop->tfrm_op.indata[0].iov_base = page_address(inpages[0]) + ((unsigned long int)(oper.indata + prev_ix) & ~PAGE_MASK); } iovlen = nooutpages + 6; -- 1.5.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/