Simplify 'if' condition statements.

Drop useless '!= 0' from 'exp != 0', replace 'exp == 0' by '!exp'.

Originally committed as revision 19647 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Diego Biurrun
2009-08-15 11:02:50 +00:00
parent cea0b5272d
commit 7c809dc3e2
5 changed files with 14 additions and 14 deletions

View File

@@ -86,12 +86,12 @@ int ff_dirac_schro_queue_push_back (FfmpegDiracSchroQueue *queue, void *p_data)
FfmpegDiracSchroQueueElement *p_new =
av_mallocz(sizeof(FfmpegDiracSchroQueueElement));
if (p_new == NULL)
if (!p_new)
return -1;
p_new->data = p_data;
if (queue->p_head == NULL)
if (!queue->p_head)
queue->p_head = p_new;
else
queue->p_tail->next = p_new;
@@ -105,7 +105,7 @@ void *ff_dirac_schro_queue_pop (FfmpegDiracSchroQueue *queue)
{
FfmpegDiracSchroQueueElement *top = queue->p_head;
if (top != NULL) {
if (top) {
void *data = top->data;
queue->p_head = queue->p_head->next;
--queue->size;