minios: clean up unneeded "err = NULL" in frontend drivers
authorBen Cressey <bcressey@amazon.com>
Fri, 6 Sep 2013 19:52:06 +0000 (12:52 -0700)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 10 Sep 2013 09:55:10 +0000 (10:55 +0100)
commit319e8ee03c88002cf7a3f4da49b3ecbc29eb698e
tree6245ac401ad909fe7d25e3df5876420f64b36bdc
parent83789acac046c93170f00c1c8fc2c1452ff315a1
minios: clean up unneeded "err = NULL" in frontend drivers

This patch removes cases where the error message pointer is already
NULL and is then set to NULL. These are harmless, but suggest
incorrect practice: the pointer should be passed to free() to
deallocate memory prior to reassignment. There are no functional
changes in this patch.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
Reviewed-by: Matt Wilson <msw@amazon.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
[msw: split a larger patch from Ben into this cleanup patch]
Signed-off-by: Matt Wilson <msw@amazon.com>
extras/mini-os/blkfront.c
extras/mini-os/fbfront.c
extras/mini-os/netfront.c
extras/mini-os/pcifront.c