From patchwork Tue Jan 22 03:39:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liu, Xinyun" X-Patchwork-Id: 2015371 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 1979C3FCDE for ; Tue, 22 Jan 2013 03:39:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B7879E66BB for ; Mon, 21 Jan 2013 19:39:53 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by gabe.freedesktop.org (Postfix) with ESMTP id EE8B6E6056 for ; Mon, 21 Jan 2013 19:39:37 -0800 (PST) Received: by mail-ie0-f182.google.com with SMTP id s9so11015555iec.27 for ; Mon, 21 Jan 2013 19:39:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=tjrZ2DnUxuXSZErfqtC06aGczSqS7O2PRWn7Umkpmik=; b=D3+IlgcLP7w1pjUX2+6sdHXHbzotHuPQZ588bBBQcvDpqmtLtY/1VTqP8UNJS8GghT i7YJMlBt03HnkXeOKLRlrWo17yK+2KmYQPc2MVLZfXG8or85WeCqQG77QUAL5QNfFosh i/UxJgjzTt8RECMPK3ICR4imUcwHzwyYDYlubU9voqRQdvZoqChHzOmWf6O52qIqsEZP YcuczAoW3of3PwhHnNsgnPiWwHy5qbmPa1s4QgH+2gxsVB9uMlZKP67bKl9vBL9FXKwi gm0oFhVEHxy39HeR99xdjiDwaeDt1w0kYIQH+r9BBZmsCxXy+KMDJ1weit7uaS1UF5WX 68Zw== MIME-Version: 1.0 X-Received: by 10.50.184.229 with SMTP id ex5mr10522572igc.72.1358825977304; Mon, 21 Jan 2013 19:39:37 -0800 (PST) Received: by 10.43.101.8 with HTTP; Mon, 21 Jan 2013 19:39:37 -0800 (PST) Date: Tue, 22 Jan 2013 11:39:37 +0800 Message-ID: Subject: [PATCH] drm/ttm: remove unused temp variable From: "Liu, Xinyun" To: 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 void *object is not used in fact. Signed-off-by: Xinyun Liu Reviewed-by: Jerome Glisse --- drivers/gpu/drm/drm_global.c | 2 -- 1 file changed, 2 deletions(-) -- 1.7.9.5 diff --git a/drivers/gpu/drm/drm_global.c b/drivers/gpu/drm/drm_global.c index f731116..3d2e91c 100644 --- a/drivers/gpu/drm/drm_global.c +++ b/drivers/gpu/drm/drm_global.c @@ -67,7 +67,6 @@ int drm_global_item_ref(struct drm_global_reference *ref) { int ret; struct drm_global_item *item = &glob[ref->global_type]; - void *object; mutex_lock(&item->mutex); if (item->refcount == 0) { @@ -85,7 +84,6 @@ int drm_global_item_ref(struct drm_global_reference *ref) } ++item->refcount; ref->object = item->object; - object = item->object; mutex_unlock(&item->mutex); return 0; out_err: