UML - kfree cleanup
PATCH 2/8 UML - kfree cleanup
Here's a small patch to remove a few unnessesary NULL pointer checks before kfree() in arch/um/drivers/daemon_user.c
Signed-off-by Jesper Juhl <[email protected]>
Signed-off-by Jeff Dike <[email protected]>
arch/um/drivers/daemon_user.c +3 -3
@@ -157,9 +157,9 @@ static void daemon_remove(void *data)os_close_file (pri->fd);os_close_file (pri->control); -if (pri->data_addr !=NULL )kfree (pri->data_addr); -if (pri->ctl_addr !=NULL )kfree (pri->ctl_addr); -if (pri->local_addr !=NULL )kfree (pri->local_addr); +kfree (pri->data_addr); +kfree (pri->ctl_addr); +kfree (pri->local_addr); }int daemon_user_write (int fd,void *buf,int len,struct daemon_data *pri)
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel