From patchwork Wed Sep 25 12:02:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2941971 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 85802BFF05 for ; Wed, 25 Sep 2013 12:03:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3DC8520579 for ; Wed, 25 Sep 2013 12:03:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A5BB20574 for ; Wed, 25 Sep 2013 12:03:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755238Ab3IYMDI (ORCPT ); Wed, 25 Sep 2013 08:03:08 -0400 Received: from mail-pb0-f51.google.com ([209.85.160.51]:50144 "EHLO mail-pb0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754667Ab3IYMDI (ORCPT ); Wed, 25 Sep 2013 08:03:08 -0400 Received: by mail-pb0-f51.google.com with SMTP id jt11so5902474pbb.38 for ; Wed, 25 Sep 2013 05:03:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1TcHmiQTqwsudm2NB9GXgVyxA2k+V7SN3ku5ektWRVE=; b=THfv6HUNO2eXf8tfiHY9sZsavZyobhRnymlEyan/R5eSnGawHfomaIdlHgUMEJjay3 jA5h7kvMmUylhBilzj5JrnRDQW3FBp1m6oJttT+LKDRaU1o4HSPo9IcjOiyTBdXHvSI7 1Zyq/nwZYDEXsxGHKYuc6PHVFmkJHx8zACBIoCoKuRe+yuexgVAoYoy2EqWToELV55eb 7txolx/VbwSrdcFx83TedhUpP+SMx9l7TVDBZFZEPuXlLhR/xRfRuB55pSAjuFeYmUaj MWyqBSeHotPHSSAc+H+iO2TjmTL9uw9HzL2KiDZKZhLRu1hL4UI2O5BhaMaUnuDBpa8n 4/bA== X-Gm-Message-State: ALoCoQmPACzPl6B98rbQY6Q6jWGQohvcmihUp7ve4iDjY4lNnaNoeIk4bVrQ4af2SEhiJy9RlizB X-Received: by 10.66.145.132 with SMTP id su4mr34146556pab.11.1380110587640; Wed, 25 Sep 2013 05:03:07 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id tz3sm47246890pbc.20.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Sep 2013 05:03:06 -0700 (PDT) From: Sachin Kamat To: linux-fbdev@vger.kernel.org Cc: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, adaplas@gmail.com, benh@kernel.crashing.org, sachin.kamat@linaro.org Subject: [PATCH 3/4] video: aty: Remove incorrect checks Date: Wed, 25 Sep 2013 17:32:58 +0530 Message-Id: <1380110579-3665-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380110579-3665-1-git-send-email-sachin.kamat@linaro.org> References: <1380110579-3665-1-git-send-email-sachin.kamat@linaro.org> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 'xoffset' and 'yoffset' are unsigned and hence cannot be less than 0. Signed-off-by: Sachin Kamat --- drivers/video/aty/radeon_base.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c index 1e30b2b..26d80a4 100644 --- a/drivers/video/aty/radeon_base.c +++ b/drivers/video/aty/radeon_base.c @@ -819,11 +819,6 @@ static int radeonfb_check_var (struct fb_var_screeninfo *var, struct fb_info *in if (v.xres_virtual < v.xres) v.xres = v.xres_virtual; - if (v.xoffset < 0) - v.xoffset = 0; - if (v.yoffset < 0) - v.yoffset = 0; - if (v.xoffset > v.xres_virtual - v.xres) v.xoffset = v.xres_virtual - v.xres - 1;