ref: 03d1d83debec8a4f002b1ea809fd1cc2974cfef8
parent: df25791b3394ad62a81c2f1efd413ffc673f6765
author: ppatience0 <[email protected]>
date: Sun May 12 13:52:35 EDT 2013
toppm: checking for err is useless; it was initialized to nil earlier
--- a/sys/src/cmd/jpg/toppm.c
+++ b/sys/src/cmd/jpg/toppm.c
@@ -62,8 +62,7 @@
freememimage(i);
i = ni;
}
- if(err == nil)
- err = memwriteppm(&bout, i, comment, rflag);
+ err = memwriteppm(&bout, i, comment, rflag);
}else{
fd = open(argv[0], OREAD);
if(fd < 0)