Source

hgbook / ja / examples / mq.tools.tools.out

Full commit
$ \textbf{diffstat -p1 remove-redundant-null-checks.patch}
 drivers/char/agp/sgi-agp.c        |    5 ++---
 drivers/char/hvcs.c               |   11 +++++------
 drivers/message/fusion/mptfc.c    |    6 ++----
 drivers/message/fusion/mptsas.c   |    3 +--
 drivers/net/fs_enet/fs_enet-mii.c |    3 +--
 drivers/net/wireless/ipw2200.c    |   22 ++++++----------------
 drivers/scsi/libata-scsi.c        |    4 +---
 drivers/video/au1100fb.c          |    3 +--
 8 files changed, 19 insertions(+), 38 deletions(-)
$ \textbf{filterdiff -i '*/video/*' remove-redundant-null-checks.patch}


@@ -743,8 +743,7 @@ void __exit au1100fb_cleanup(void)
 \{
 	driver_unregister(&au1100fb_driver);
 
-	if (drv_info.opt_mode)
-		kfree(drv_info.opt_mode);
+	kfree(drv_info.opt_mode);
 \}
 
 module_init(au1100fb_init);