summaryrefslogtreecommitdiff
path: root/src/modules/emotion/generic
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-08-08 10:34:49 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2014-08-08 11:28:56 +0200
commit80733c51716007dcf323b66a105499894135cd6c (patch)
treef68bdcfb528148bde1a87a1d0320de306761694b /src/modules/emotion/generic
parentb2b4e62dd3d77e534b18e312263e3da16d0a5ef1 (diff)
modules/emotion_generic: Remove unnecessary NULL checks for event data
We are already using the pointer before we check it here. We also don't check it in the other callbacks so align the handling in this file. CID: 1039635, 1039636, 1039637, 1039638, 1039639
Diffstat (limited to 'src/modules/emotion/generic')
-rw-r--r--src/modules/emotion/generic/emotion_generic.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/emotion/generic/emotion_generic.c b/src/modules/emotion/generic/emotion_generic.c
index 32c234e767..2a688f48dc 100644
--- a/src/modules/emotion/generic/emotion_generic.c
+++ b/src/modules/emotion/generic/emotion_generic.c
@@ -1406,7 +1406,7 @@ em_video_channel_mute_set(void *data, int mute)
1406 1406
1407 ev->video_mute = !!mute; 1407 ev->video_mute = !!mute;
1408 1408
1409 if (!ev || !ev->file_ready) 1409 if (!ev->file_ready)
1410 return; 1410 return;
1411 1411
1412 _player_send_cmd(ev, EM_CMD_VIDEO_MUTE_SET); 1412 _player_send_cmd(ev, EM_CMD_VIDEO_MUTE_SET);
@@ -1471,7 +1471,7 @@ em_audio_channel_mute_set(void *data, int mute)
1471 1471
1472 ev->audio_mute = !!mute; 1472 ev->audio_mute = !!mute;
1473 1473
1474 if (!ev || !ev->file_ready) 1474 if (!ev->file_ready)
1475 return; 1475 return;
1476 1476
1477 _player_send_cmd(ev, EM_CMD_AUDIO_MUTE_SET); 1477 _player_send_cmd(ev, EM_CMD_AUDIO_MUTE_SET);
@@ -1495,7 +1495,7 @@ em_audio_channel_volume_set(void *data, double vol)
1495 1495
1496 ev->volume = vol; 1496 ev->volume = vol;
1497 1497
1498 if (!ev || !ev->file_ready) 1498 if (!ev->file_ready)
1499 return; 1499 return;
1500 1500
1501 _player_send_cmd(ev, EM_CMD_VOLUME_SET); 1501 _player_send_cmd(ev, EM_CMD_VOLUME_SET);
@@ -1560,7 +1560,7 @@ em_spu_channel_mute_set(void *data, int mute)
1560 1560
1561 ev->spu_mute = !!mute; 1561 ev->spu_mute = !!mute;
1562 1562
1563 if (!ev || !ev->file_ready) 1563 if (!ev->file_ready)
1564 return; 1564 return;
1565 1565
1566 _player_send_cmd(ev, EM_CMD_SPU_MUTE_SET); 1566 _player_send_cmd(ev, EM_CMD_SPU_MUTE_SET);
@@ -1606,7 +1606,7 @@ em_speed_set(void *data, double speed)
1606 float rate = speed; 1606 float rate = speed;
1607 ev->speed = rate; 1607 ev->speed = rate;
1608 1608
1609 if (!ev || !ev->file_ready) 1609 if (!ev->file_ready)
1610 return; 1610 return;
1611 1611
1612 _player_send_cmd(ev, EM_CMD_SPEED_SET); 1612 _player_send_cmd(ev, EM_CMD_SPEED_SET);