On Wed, 2011-08-24 at 20:52 -0700, Bing Zhao wrote: > Sequences of kmalloc/kzalloc and memcpy are replaced with > kmemdups. > diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c [] > - tmp = kmalloc(rate1_size, GFP_KERNEL); > + tmp = kmemdup(rate1, rate1_size, GFP_KERNEL); > if (!tmp) { > - dev_err(priv->adapter->dev, "failed to alloc tmp buf\n"); > + dev_err(priv->adapter->dev, "failed to duplicate rate buf\n"); I wouldn't modify any OOM message. These _are_ allocs failures. [all the others removed] -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html