hardware/intel/libva
Révision | 4cb6d787bd8270bbba8f8334991db974c592c5c2 (tree) |
---|---|
l'heure | 2016-04-25 11:15:39 |
Auteur | Alan Coopersmith <alan.coopersmith@orac...> |
Commiter | Xiang, Haihao |
gcc suggests not putting ; at end of if statements
dri2_util.c: In function 'dri2Close':
dri2_util.c:171:33: warning: suggest braces around empty body in an 'if'
Introduced-by: commit fffeffb8a78fffbb6a May 30 2011
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
@@ -168,7 +168,7 @@ dri2Close(VADriverContextP ctx) | ||
168 | 168 | |
169 | 169 | free_drawable_hashtable(ctx); |
170 | 170 | |
171 | - if (dri_state->base.fd >= 0); | |
171 | + if (dri_state->base.fd >= 0) | |
172 | 172 | close(dri_state->base.fd); |
173 | 173 | } |
174 | 174 |