summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-06-09 01:56:27 -0400
committerMatt Turner <mattst88@gmail.com>2010-06-09 01:56:27 -0400
commitb333d1751eab5aaff9fb5764c4b7b6250f78d145 (patch)
treeefba332da9aea48e6ccdfc902c6070e90463c3fc
parent415b727c6a91bd788436f848bd7828930f2019e2 (diff)
Remove another superfluous if(p) check around free(p)
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r--src/pm2_video.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pm2_video.c b/src/pm2_video.c
index c9f6c05..58e4541 100644
--- a/src/pm2_video.c
+++ b/src/pm2_video.c
@@ -183,10 +183,8 @@ static AdaptorPrivPtr AdaptorPrivList = NULL;
#define FreeCookies(pPPriv) \
do { \
- if ((pPPriv)->pCookies) { \
- free((pPPriv)->pCookies); \
+ free((pPPriv)->pCookies); \
(pPPriv)->pCookies = NULL; \
- } \
} while (0)
#define PORTNUM(p) ((int)((p) - &pAPriv->Port[0]))