From b333d1751eab5aaff9fb5764c4b7b6250f78d145 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 9 Jun 2010 01:56:27 -0400 Subject: Remove another superfluous if(p) check around free(p) Signed-off-by: Matt Turner --- src/pm2_video.c | 4 +--- 1 file changed, 1 insertion(+), 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])) -- cgit v1.2.3