On Tue, 2012-04-17 at 09:33 +0300, Dan Carpenter wrote: > We can use kcalloc() here instead of kzalloc(). It's better style and > it has overflow checking built in. > > Also -ENOMEM is the correct error code for allocation errors. -1 means > -EPERM. None of the callers preserve the error codes so it doesn't > matter except as a cleanup. > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Also applied to lio-core. I'll make sure to include these into the next target-pending update. Thanks Dan! --nab -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html