From patchwork Sun Mar 10 12:22:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mihnea Dobrescu-Balaur X-Patchwork-Id: 2246891 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id EDC843FCF6 for ; Mon, 11 Mar 2013 06:35:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F2B4CE6329 for ; Sun, 10 Mar 2013 23:35:16 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by gabe.freedesktop.org (Postfix) with ESMTP id E3698E5CDA for ; Sun, 10 Mar 2013 05:23:14 -0700 (PDT) Received: by mail-wg0-f46.google.com with SMTP id fg15so3943807wgb.25 for ; Sun, 10 Mar 2013 05:23:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=l4mrNUTHDTY3VAFiZCsiFfaI/RDg8lVsmWVdY+Spllo=; b=ZKYKfPCLKjzCoue8WX04C+DvBB/Yj4GNQX1uimINY9WjcwYh7zZIfZjVqq/SnVNIQf p3ZgHMysxG5Ip8iv9iSj3zDSTAFSoASWZzwLK4TmxiY6PMwLxC1iOwdS2gWWSxD0QDjP 19nWdXmKCXeMqpDDmw/MNsWsUwZ3ESrIfFQuhZrVfXQOdANwQNnZcUL7yWDtT86CG+fs 9VdfdWwKY5TltBfIbPCwHfE5fCsPH5tug/gL3u8EUBYQrJ4CWmiezqj06zl0TiVcYu0q 0QnK+2HUCnqQ1tDVgmRej9aN3PNXkry8FtA1n5umgQ7UWkt4kMTkvY5syuZwdyVVO0T5 RLjw== X-Received: by 10.194.58.202 with SMTP id t10mr13775527wjq.4.1362918194039; Sun, 10 Mar 2013 05:23:14 -0700 (PDT) Received: from Think.labs.cs.pub.ro ([141.85.225.204]) by mx.google.com with ESMTPS id r7sm10279891wiz.2.2013.03.10.05.23.12 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Mar 2013 05:23:13 -0700 (PDT) From: Mihnea Dobrescu-Balaur To: dri-devel@lists.freedesktop.org Subject: [PATCH] gpu: don't cast kzalloc() return value Date: Sun, 10 Mar 2013 14:22:48 +0200 Message-Id: <1362918168-20271-1-git-send-email-mihneadb@gmail.com> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Sun, 10 Mar 2013 23:27:57 -0700 Cc: daniel.vetter@ffwll.ch, linux-kernel@vger.kernel.org, Mihnea Dobrescu-Balaur 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: , MIME-Version: 1.0 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 Signed-off-by: Mihnea Dobrescu-Balaur --- drivers/gpu/drm/i915/intel_sdvo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c index df08e81..5300526 100644 --- a/drivers/gpu/drm/i915/intel_sdvo.c +++ b/drivers/gpu/drm/i915/intel_sdvo.c @@ -451,7 +451,7 @@ static bool intel_sdvo_write_cmd(struct intel_sdvo *intel_sdvo, u8 cmd, int i, ret = true; /* Would be simpler to allocate both in one go ? */ - buf = (u8 *)kzalloc(args_len * 2 + 2, GFP_KERNEL); + buf = kzalloc(args_len * 2 + 2, GFP_KERNEL); if (!buf) return false;