Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757108AbbDPJbM (ORCPT ); Thu, 16 Apr 2015 05:31:12 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:23677 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756989AbbDPJa6 (ORCPT ); Thu, 16 Apr 2015 05:30:58 -0400 X-AuditID: cbfec7f5-b7f1e6d00000617c-5f-552f814dd24a From: Karol Wrona To: linux-iio@vger.kernel.org, Jonathan Cameron Cc: linux-kernel@vger.kernel.org, Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald , Karol Wrona , Karol Wrona Subject: [PATCH] iio: common: ssp_sensors: Fix uninitialized warning for timestamp Date: Thu, 16 Apr 2015 11:30:23 +0200 Message-id: <1429176624-19223-1-git-send-email-k.wrona@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNJMWRmVeSWpSXmKPExsVy+t/xK7q+jfqhBs8ea1k8aFrFZHFq2X4m i13/3zBbLJk8n9Vi3pF3LBaXd81hs/i96xi7xZ51W5gcODx2zrrL7vHhY5zHplWdbB5L3hxi 9TjffITRo2/LKkaPz5vkAtijuGxSUnMyy1KL9O0SuDJe3XrFUvCRreLRvwvMDYwPWLsYOTkk BEwkFi/4wgxhi0lcuLeerYuRi0NIYCmjxJGO1cwQThOTxPnZLUwgVWwC6hLNOxYDJTg4RASc JJ4tygSpYRa4yihxdfFLsEnCAiESp94cB9vAIqAqcXbnOhYQm1fAWWLn2evsIL0SAgoScybZ TGDkXsDIsIpRNLU0uaA4KT3XSK84Mbe4NC9dLzk/dxMjJIC+7mBceszqEKMAB6MSD+8NGb1Q IdbEsuLK3EOMEhzMSiK8x9P1Q4V4UxIrq1KL8uOLSnNSiw8xMnFwSjUw6j0Ks37AURv6VV2X 7/NZ25Y/XEeUYyMk9eYYPWtbbPs+e6eWveHvvDcax+xYc3iVhAXLvrTLuLrfk+OJcYx6dOXM +TdrJm4QuL/p6kUN6S5hvqV12oJWe5yPffpx38378e/iFTvsrOWnxF7Y+WHKkqy96rtfXkn9 ejfoqWFodOCGOUeclq9mVmIpzkg01GIuKk4EAOwfDJP+AQAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1101 Lines: 30 calculated_time variable caused warning as uninitialized. It was not harmful because it was evaluated in the path in which was used later but it is to satisfy the checkers. Signed-off-by: Karol Wrona --- drivers/iio/common/ssp_sensors/ssp_iio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/common/ssp_sensors/ssp_iio.c b/drivers/iio/common/ssp_sensors/ssp_iio.c index a3ae165..16180e6 100644 --- a/drivers/iio/common/ssp_sensors/ssp_iio.c +++ b/drivers/iio/common/ssp_sensors/ssp_iio.c @@ -80,7 +80,7 @@ int ssp_common_process_data(struct iio_dev *indio_dev, void *buf, unsigned int len, int64_t timestamp) { __le32 time; - int64_t calculated_time; + int64_t calculated_time = 0; struct ssp_sensor_data *spd = iio_priv(indio_dev); if (indio_dev->scan_bytes == 0) -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/