From patchwork Tue Jan 13 16:46:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5622351 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 853BB9F358 for ; Tue, 13 Jan 2015 16:47:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A84F020640 for ; Tue, 13 Jan 2015 16:47:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C37CE2041F for ; Tue, 13 Jan 2015 16:47:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752215AbbAMQrP (ORCPT ); Tue, 13 Jan 2015 11:47:15 -0500 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36857 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751630AbbAMQrO (ORCPT ); Tue, 13 Jan 2015 11:47:14 -0500 Received: by mail-pa0-f50.google.com with SMTP id bj1so4631064pad.9; Tue, 13 Jan 2015 08:47:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=vHOfsFZLXb+8bh7874wM9leqDB33h4FV4t6MVGT699Q=; b=L/tKzEJoRymAvRc6P+e+RjKDJ64D/ZD19T8DwegWck6ix5dMOt0N05Yj32TQVzpGnW 5UelATUeV1RL5qTJPRI0Vm5GiUc4KXO+GoFGUyVwRVfpAJFl/1kx/jH/ZvAIakTqLIvq +w1m6AmwSOdmlWqSVL0IWUc85m1hpSRodLzRjkMFHBNO1149uH2kqJuW8bsVD7oUqrK7 7XYjRdqeyoG1m1fTLATSkTRjsypuOw/ekpS/zxILBMKjQd8H4oYnjWRhcNeUZKdtqSq4 q6XwLDFro0t4YToknFo63G+G7sXtIMJBw2bXYaqfS4G4TuOeKSkejy5l7sltMHsYSr1P 7Hlg== X-Received: by 10.66.97.6 with SMTP id dw6mr51972580pab.114.1421167633660; Tue, 13 Jan 2015 08:47:13 -0800 (PST) Received: from localhost.localdomain ([122.169.180.146]) by mx.google.com with ESMTPSA id pn2sm17452732pbb.42.2015.01.13.08.47.10 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 Jan 2015 08:47:13 -0800 (PST) From: Sudip Mukherjee To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard Cc: Sudip Mukherjee , linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] OMAPDSS: hdmi5: remove unneeded check Date: Tue, 13 Jan 2015 22:16:59 +0530 Message-Id: <1421167620-17290-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 prior to this check we are checking for word_length_16b and if word_length_16b is false then we are returning with -EINVAL. So at this point word_length_16b can only be true. Signed-off-by: Sudip Mukherjee --- drivers/video/fbdev/omap2/dss/hdmi5_core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi5_core.c b/drivers/video/fbdev/omap2/dss/hdmi5_core.c index a3cfe3d..6bf4b75 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi5_core.c +++ b/drivers/video/fbdev/omap2/dss/hdmi5_core.c @@ -858,10 +858,7 @@ int hdmi5_audio_config(struct hdmi_core_data *core, struct hdmi_wp_data *wp, core_cfg.layout = HDMI_AUDIO_LAYOUT_8CH; /* DMA settings */ - if (word_length_16b) - audio_dma.transfer_size = 0x10; - else - audio_dma.transfer_size = 0x20; + audio_dma.transfer_size = 0x10; audio_dma.block_size = 0xC0; audio_dma.mode = HDMI_AUDIO_TRANSF_DMA; audio_dma.fifo_threshold = 0x20; /* in number of samples */