From patchwork Mon Oct 8 14:44:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 1568911 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 4B84EDFFCF for ; Tue, 9 Oct 2012 06:25:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BF9AA0915 for ; Mon, 8 Oct 2012 23:25:24 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 796249F6C6 for ; Mon, 8 Oct 2012 07:44:07 -0700 (PDT) Received: by mail-qc0-f177.google.com with SMTP id u28so3186638qcs.36 for ; Mon, 08 Oct 2012 07:44:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=QfmvDX4D3/s1vJ8bEDuE4V/JKMTSv5I68Pqfz7lUF54=; b=bWWnWqRvbIpQxMDECCmnY7GNuN2j8VuSa3jbFOy+RQByOK2zvSwU/ZNMTSY3Jt4mQn X951WLIy3dWO2nAmqw92OtD8jQ9ykRE8LPg8MS2P/w8YxVQC8ifu+wUvJTRV8rd81hj1 eFN0FcBSel5CMfp56jLgbBB07gECxtfzp6JgjQI7BNyioJ1bhgR5CNyacrKrgd1NnS/O Vn62HxRtSfCs//R9ysw3pQCoxTUwubH/AIu8u9ZpLQi5cfStb+zx75spGrxJud6J34Ku SuunD1TsSry26rEKBzhl2wfzqtE+IMF2joFr8L3Y0AhcKCyJveEVCW24HG5w0vWu+7F9 BuZw== MIME-Version: 1.0 Received: by 10.49.14.228 with SMTP id s4mr42869802qec.4.1349707446685; Mon, 08 Oct 2012 07:44:06 -0700 (PDT) Received: by 10.229.146.194 with HTTP; Mon, 8 Oct 2012 07:44:06 -0700 (PDT) Date: Mon, 8 Oct 2012 22:44:06 +0800 Message-ID: Subject: [PATCH v2] gma500: medfield: drop bogus NULL check in mdfld_dsi_output_init() From: Wei Yongjun To: airlied@linux.ie, alan@lxorguk.ukuu.org.uk X-Mailman-Approved-At: Mon, 08 Oct 2012 23:23:42 -0700 Cc: yongjun_wei@trendmicro.com.cn, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org From: Wei Yongjun Drop the NULL test for dev since it never be NULL. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun Acked-by: Kirill A. Shutemov --- drivers/gpu/drm/gma500/mdfld_dsi_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_output.c b/drivers/gpu/drm/gma500/mdfld_dsi_output.c index 32dba2a..b6f49d9 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_output.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_output.c @@ -506,7 +506,7 @@ void mdfld_dsi_output_init(struct drm_device *dev, dev_dbg(dev->dev, "init DSI output on pipe %d\n", pipe); - if (!dev || ((pipe != 0) && (pipe != 2))) { + if ((pipe != 0) && (pipe != 2)) { DRM_ERROR("Invalid parameter\n"); return; }