Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1c252d0 authored by Siddeswar Aluganti's avatar Siddeswar Aluganti Committed by Bruce Levy
Browse files

kernel: Fix build errors due to uninitialized variables



Newer gcc version requires all variables to be initialized.

Change-Id: I2f3029d17fab36ec6612552d4d2648e317f261d8
Signed-off-by: default avatarSiddeswar Alugant <salugant@codeaurora.org>
Signed-off-by: default avatarBruce Levy <blevy@codeaurora.org>
parent d91ef6f6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -471,7 +471,7 @@ static long qbt1000_ioctl(
	case QBT1000_SEND_TZCMD:
	{
		struct qbt1000_send_tz_cmd tzcmd;
		void *rsp_buf;
		void *rsp_buf = NULL;

		if (copy_from_user(&tzcmd, priv_arg,
			sizeof(tzcmd))
@@ -861,8 +861,8 @@ static irqreturn_t qbt1000_gpio_isr(int irq, void *dev_id)
static irqreturn_t qbt1000_ipc_irq_handler(int irq, void *dev_id)
{
	uint8_t *msg_buffer;
	struct fw_ipc_cmd *rx_cmd;
	struct fw_ipc_header *header;
	struct fw_ipc_cmd *rx_cmd = NULL;
	struct fw_ipc_header *header = NULL;
	int i, j;
	uint32_t rxipc = FP_APP_CMD_RX_IPC;
	struct qbt1000_drvdata *drvdata = (struct qbt1000_drvdata *)dev_id;
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ COMPAT_SYSCALL_DEFINE2(settimeofday, struct compat_timeval __user *, tv,
		       struct timezone __user *, tz)
{
	struct timeval user_tv;
	struct timespec	new_ts;
	struct timespec	new_ts = {0};
	struct timezone new_tz;

	if (tv) {
+1 −1
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ SYSCALL_DEFINE2(settimeofday, struct timeval __user *, tv,
		struct timezone __user *, tz)
{
	struct timeval user_tv;
	struct timespec	new_ts;
	struct timespec	new_ts = {0};
	struct timezone new_tz;

	if (tv) {