From patchwork Fri Dec 28 10:18:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 1914751 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DFA5E40061 for ; Fri, 28 Dec 2012 10:26:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752383Ab2L1K0Y (ORCPT ); Fri, 28 Dec 2012 05:26:24 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:47524 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752082Ab2L1K0X (ORCPT ); Fri, 28 Dec 2012 05:26:23 -0500 Received: by mail-pb0-f46.google.com with SMTP id wy7so5828877pbc.5 for ; Fri, 28 Dec 2012 02:26:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=u+NP5DXrAK5z0j4LohlDY+1+GJXuorYDsnY89QweGsM=; b=YkMGDCF0HNZVb+Jit9p9jyiKGjpbzM0xdNCJXtovAJqurLbHNAoNS25fHbplEV7cnm 0q8YGpigNQw5b+RgC5mWBIqCrw1CAVzuCvAGO2tI+X6LgE5i8BpcjAhPn3OwBQa4UZbO 5aSkpP99XZM2cs+Clt5Xt48M4m7umWYMhgWthZBZhNvdMeX6pNJJ5IR+Ze/Vx+EZuJkj oeAQ3Dmm+haM0D7WXNGTjaVlLUDomQPM4bJ+b0FvusJH+8bNOLFo6LFKF8FQcntLecU9 FdOcwfX/R3SJD8SQUdb+7B2KEIQbSaLW1eD3z1oSTfuAb8ZxICYA2njjt+Q6AneoRJHr Nm6Q== X-Received: by 10.66.80.70 with SMTP id p6mr97819472pax.23.1356690383349; Fri, 28 Dec 2012 02:26:23 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id is3sm19485354pbc.6.2012.12.28.02.26.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Dec 2012 02:26:22 -0800 (PST) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: k.debski@samsung.com, s.nawrocki@samsung.com, sylvester.nawrocki@gmail.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/3] [media] s5p-mfc: Remove redundant 'break' Date: Fri, 28 Dec 2012 15:48:27 +0530 Message-Id: <1356689908-6866-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1356689908-6866-1-git-send-email-sachin.kamat@linaro.org> References: <1356689908-6866-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQmmJ9VfETBzE7SfzXY1n1EmgR+6PcO8V2ADLUhJkhJSbzXEO81JPNAwsmz5a/KJDkX303+a Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The code returns before this statement. Hence not required. Silences the following smatch message: drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c:525 s5p_mfc_set_dec_frame_buffer_v5() info: ignoring unreachable code. Signed-off-by: Sachin Kamat --- drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c index bb99d3d..b0f277e 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c @@ -522,7 +522,6 @@ int s5p_mfc_set_dec_frame_buffer_v5(struct s5p_mfc_ctx *ctx) mfc_err("Unknown codec for decoding (%x)\n", ctx->codec_mode); return -EINVAL; - break; } frame_size = ctx->luma_size; frame_size_ch = ctx->chroma_size;