lkml.org 
[lkml]   [2007]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[Patch 13/16] Remove needless kmalloc casts in the wireless drivers.
    Signed-off-by: Jack Stone <jack@hawkeye.stone.uk.eu.org>

    CC: John Linville <linville@tuxdriver.com>

    ---
    drivers/net/wireless/ipw2100.c | 16 ++++++----------
    1 file changed, 6 insertions(+), 10 deletions(-)

    Index: b/drivers/net/wireless/ipw2100.c
    ===================================================================
    --- a/drivers/net/wireless/ipw2100.c
    +++ b/drivers/net/wireless/ipw2100.c
    @@ -3363,11 +3363,9 @@ static int ipw2100_msg_allocate(struct i
    void *v;
    dma_addr_t p;

    - priv->msg_buffers =
    - (struct ipw2100_tx_packet *)kmalloc(IPW_COMMAND_POOL_SIZE *
    - sizeof(struct
    - ipw2100_tx_packet),
    - GFP_KERNEL);
    + priv->msg_buffers = kmalloc(IPW_COMMAND_POOL_SIZE *
    + sizeof(struct ipw2100_tx_packet),
    + GFP_KERNEL);
    if (!priv->msg_buffers) {
    printk(KERN_ERR DRV_NAME ": %s: PCI alloc failed for msg "
    "buffers.\n", priv->net_dev->name);
    @@ -4396,11 +4394,9 @@ static int ipw2100_tx_allocate(struct ip
    return err;
    }

    - priv->tx_buffers =
    - (struct ipw2100_tx_packet *)kmalloc(TX_PENDED_QUEUE_LENGTH *
    - sizeof(struct
    - ipw2100_tx_packet),
    - GFP_ATOMIC);
    + priv->tx_buffers = kmalloc(TX_PENDED_QUEUE_LENGTH *
    + sizeof(struct ipw2100_tx_packet),
    + GFP_ATOMIC);
    if (!priv->tx_buffers) {
    printk(KERN_ERR DRV_NAME
    ": %s: alloc failed form tx buffers.\n",
    --
    -
    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/

    \
     
     \ /
      Last update: 2007-07-31 15:15    [W:0.025 / U:29.920 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site