e100: replace kmalloc with kcalloc

Replace kmalloc+memset with kcalloc

Signed-off-by: Yan Burman <burman.yan@gmail.com>
Acked-By: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>

authored by Yan Burman and committed by Adrian Bunk c48e3fca 0268bd0a

+1 -2
+1 -2
drivers/net/e100.c
··· 1930 nic->rx_to_use = nic->rx_to_clean = NULL; 1931 nic->ru_running = RU_UNINITIALIZED; 1932 1933 - if(!(nic->rxs = kmalloc(sizeof(struct rx) * count, GFP_ATOMIC))) 1934 return -ENOMEM; 1935 - memset(nic->rxs, 0, sizeof(struct rx) * count); 1936 1937 for(rx = nic->rxs, i = 0; i < count; rx++, i++) { 1938 rx->next = (i + 1 < count) ? rx + 1 : nic->rxs;
··· 1930 nic->rx_to_use = nic->rx_to_clean = NULL; 1931 nic->ru_running = RU_UNINITIALIZED; 1932 1933 + if(!(nic->rxs = kcalloc(count, sizeof(struct rx), GFP_ATOMIC))) 1934 return -ENOMEM; 1935 1936 for(rx = nic->rxs, i = 0; i < count; rx++, i++) { 1937 rx->next = (i + 1 < count) ? rx + 1 : nic->rxs;