提交 5bc5ca85 编写于 作者: A Alexey Khoroshilov 提交者: John W. Linville

rsi: GFP_ATOMIC is not needed in rsi_init_usb_interface()

Signed-off-by: NAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 09ebb810
...@@ -397,7 +397,7 @@ static int rsi_init_usb_interface(struct rsi_hw *adapter, ...@@ -397,7 +397,7 @@ static int rsi_init_usb_interface(struct rsi_hw *adapter,
return -ENOMEM; return -ENOMEM;
} }
rsi_dev->tx_buffer = kmalloc(2048, GFP_ATOMIC); rsi_dev->tx_buffer = kmalloc(2048, GFP_KERNEL);
rsi_dev->rx_usb_urb[0] = usb_alloc_urb(0, GFP_KERNEL); rsi_dev->rx_usb_urb[0] = usb_alloc_urb(0, GFP_KERNEL);
rsi_dev->rx_usb_urb[0]->transfer_buffer = adapter->priv->rx_data_pkt; rsi_dev->rx_usb_urb[0]->transfer_buffer = adapter->priv->rx_data_pkt;
rsi_dev->tx_blk_size = 252; rsi_dev->tx_blk_size = 252;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册