Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efe4c457 authored by Joe Perches's avatar Joe Perches Committed by John W. Linville
Browse files

drivers/net/wireless/ipw2x00/ipw2100.c: Remove unnecessary kmalloc casts

parent fcea6007
Loading
Loading
Loading
Loading
+7 −11
Original line number Original line Diff line number Diff line
@@ -3467,9 +3467,7 @@ static int ipw2100_msg_allocate(struct ipw2100_priv *priv)
	dma_addr_t p;
	dma_addr_t p;


	priv->msg_buffers =
	priv->msg_buffers =
	    (struct ipw2100_tx_packet *)kmalloc(IPW_COMMAND_POOL_SIZE *
	    kmalloc(IPW_COMMAND_POOL_SIZE * sizeof(struct ipw2100_tx_packet),
						sizeof(struct
						       ipw2100_tx_packet),
		    GFP_KERNEL);
		    GFP_KERNEL);
	if (!priv->msg_buffers) {
	if (!priv->msg_buffers) {
		printk(KERN_ERR DRV_NAME ": %s: PCI alloc failed for msg "
		printk(KERN_ERR DRV_NAME ": %s: PCI alloc failed for msg "
@@ -4499,9 +4497,7 @@ static int ipw2100_tx_allocate(struct ipw2100_priv *priv)
	}
	}


	priv->tx_buffers =
	priv->tx_buffers =
	    (struct ipw2100_tx_packet *)kmalloc(TX_PENDED_QUEUE_LENGTH *
	    kmalloc(TX_PENDED_QUEUE_LENGTH * sizeof(struct ipw2100_tx_packet),
						sizeof(struct
						       ipw2100_tx_packet),
		    GFP_ATOMIC);
		    GFP_ATOMIC);
	if (!priv->tx_buffers) {
	if (!priv->tx_buffers) {
		printk(KERN_ERR DRV_NAME
		printk(KERN_ERR DRV_NAME
@@ -4651,8 +4647,8 @@ static int ipw2100_rx_allocate(struct ipw2100_priv *priv)
	/*
	/*
	 * allocate packets
	 * allocate packets
	 */
	 */
	priv->rx_buffers = (struct ipw2100_rx_packet *)
	priv->rx_buffers = kmalloc(RX_QUEUE_LENGTH *
	    kmalloc(RX_QUEUE_LENGTH * sizeof(struct ipw2100_rx_packet),
				   sizeof(struct ipw2100_rx_packet),
				   GFP_KERNEL);
				   GFP_KERNEL);
	if (!priv->rx_buffers) {
	if (!priv->rx_buffers) {
		IPW_DEBUG_INFO("can't allocate rx packet buffer table\n");
		IPW_DEBUG_INFO("can't allocate rx packet buffer table\n");