Commit 64e49cb9 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] drx-j: don't use parenthesis on return

CodingStyle fix: don't use parenthesis on return, as it is not
a function.
Acked-by: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 068e94ea
......@@ -50,12 +50,12 @@ u32 drxbsp_hst_clock(void)
int drxbsp_hst_memcmp(void *s1, void *s2, u32 n)
{
return (memcmp(s1, s2, (size_t) n));
return memcmp(s1, s2, (size_t)n);
}
void *drxbsp_hst_memcpy(void *to, void *from, u32 n)
{
return (memcpy(to, from, (size_t) n));
return memcpy(to, from, (size_t)n);
}
int drxbsp_i2c_write_read(struct i2c_device_addr *w_dev_addr,
......
......@@ -373,7 +373,7 @@ scan_function_default(void *scan_context,
status = drx_ctrl(demod, DRX_CTRL_SET_CHANNEL, scan_channel);
if (status != DRX_STS_OK) {
return (status);
return status;
}
status = scan_wait_for_lock(demod, &is_locked);
......@@ -688,7 +688,7 @@ static int ctrl_scan_next(struct drx_demod_instance *demod, u16 *scan_progress)
if (next_status != DRX_STS_OK) {
common_attr->scan_active = false;
return (next_status);
return next_status;
}
}
if (status != DRX_STS_BUSY) {
......@@ -702,7 +702,7 @@ static int ctrl_scan_next(struct drx_demod_instance *demod, u16 *scan_progress)
/* End of scan reached: call stop-scan, ignore any error */
ctrl_scan_stop(demod);
common_attr->scan_active = false;
return (DRX_STS_READY);
return DRX_STS_READY;
}
common_attr->scan_active = false;
......@@ -958,7 +958,7 @@ static u16 u_code_compute_crc(u8 *block_data, u16 nr_words)
i++;
block_data += (sizeof(u16));
}
return ((u16) (crc_word >> 16));
return (u16)(crc_word >> 16);
}
/*============================================================================*/
......@@ -1110,7 +1110,7 @@ ctrl_u_code(struct drx_demod_instance *demod,
mc_data,
0x0000) !=
DRX_STS_OK) {
return (DRX_STS_ERROR);
return DRX_STS_ERROR;
} /* if */
};
break;
......@@ -1151,7 +1151,7 @@ ctrl_u_code(struct drx_demod_instance *demod,
mc_dataBuffer,
0x0000) !=
DRX_STS_OK) {
return (DRX_STS_ERROR);
return DRX_STS_ERROR;
}
result =
......@@ -1315,7 +1315,7 @@ int drx_open(struct drx_demod_instance *demod)
(demod->my_ext_attr == NULL) ||
(demod->my_i2c_dev_addr == NULL) ||
(demod->my_common_attr->is_opened == true)) {
return (DRX_STS_INVALID_ARG);
return DRX_STS_INVALID_ARG;
}
status = (*(demod->my_demod_funct->open_func)) (demod);
......@@ -1392,13 +1392,13 @@ drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
(demod->my_common_attr == NULL) ||
(demod->my_ext_attr == NULL) || (demod->my_i2c_dev_addr == NULL)
) {
return (DRX_STS_INVALID_ARG);
return DRX_STS_INVALID_ARG;
}
if (((demod->my_common_attr->is_opened == false) &&
(ctrl != DRX_CTRL_PROBE_DEVICE) && (ctrl != DRX_CTRL_VERSION))
) {
return (DRX_STS_INVALID_ARG);
return DRX_STS_INVALID_ARG;
}
if ((DRX_ISPOWERDOWNMODE(demod->my_common_attr->current_power_mode) &&
......@@ -1498,7 +1498,7 @@ drx_ctrl(struct drx_demod_instance *demod, u32 ctrl, void *ctrl_data)
return DRX_STS_FUNC_NOT_AVAILABLE;
}
} else {
return (status);
return status;
}
return DRX_STS_OK;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment