Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754482AbaGBWHX (ORCPT ); Wed, 2 Jul 2014 18:07:23 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:37967 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752804AbaGBWHV (ORCPT ); Wed, 2 Jul 2014 18:07:21 -0400 From: Rickard Strandqvist To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Rickard Strandqvist , Jingoo Han , Laurent Pinchart , Rob Clark , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video: fbdev: sis: init301.c: Cleaning up a potential division by zero Date: Thu, 3 Jul 2014 00:08:34 +0200 Message-Id: <1404338915-6946-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Guess these ifdef will always be set, but still feel that 1 is a better starting value other than 0 in this case. This was found using a static code analysis program called cppcheck Rickard Strandqvist (1): video: fbdev: sis: init301.c: Cleaning up a potential division by zero drivers/video/fbdev/sis/init301.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.7.10.4 -- 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/