[openib-general] [PATCH 3/10] Driver viport files - implementation of communication protocol with VEx

Roland Dreier rdreier at cisco.com
Mon Oct 2 13:29:59 PDT 2006


 > +	viport = (struct viport *)kmalloc(sizeof(struct viport), GFP_KERNEL);
 > +	memset(viport, 0, sizeof(struct viport));

cast from void * is not necessary.  memset can be replaced by just
using kzalloc().

 - R.




More information about the general mailing list