From patchwork Fri Jun 20 21:50:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Goode X-Patchwork-Id: 4392981 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 365649F314 for ; Fri, 20 Jun 2014 21:51:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 630D620222 for ; Fri, 20 Jun 2014 21:51:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C651201FB for ; Fri, 20 Jun 2014 21:51:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965480AbaFTVv2 (ORCPT ); Fri, 20 Jun 2014 17:51:28 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:42521 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965046AbaFTVv1 (ORCPT ); Fri, 20 Jun 2014 17:51:27 -0400 Received: by mail-la0-f44.google.com with SMTP id ty20so2783643lab.31 for ; Fri, 20 Jun 2014 14:51:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=JFD/Pa44l2JeZfxIAsyI/7TJgSz0CuJec6ds6foadLQ=; b=beiwigkr0Dq3rG2A92dOgQlSggZN9WkdNpF531sif3LHKaEr4g5BPU2dqcnxyINjNc yKnQ+id+DBJa47o2Eesin5RePN1hYj9JjabUvF1h/V3nL+D7o4tY8ITuDEdMLDixapmJ wSz3UG/vnEVnaDA18W99LW0wc7tS5PywgRLbpjL0vQYXS7YDe+QLOPuo5IeWxH3W7jiG IyasM2IdY3adPoHU4BxSrnkB4pum0S5hSy6A6RtbwlIT6SH7ekaEVAKNyzhrtZ4cqJpg ixR8prY5ItAUsJdP4Nnr1PG8jaEawaBZYB/9B0TUleQnt1njOisrTPOa2r4LvMmrzLrx AjSg== X-Received: by 10.152.42.194 with SMTP id q2mr4324647lal.39.1403301085316; Fri, 20 Jun 2014 14:51:25 -0700 (PDT) Received: from lianli.example.org (s83-179-48-77.cust.tele2.se. [83.179.48.77]) by mx.google.com with ESMTPSA id f9sm4162906lae.16.2014.06.20.14.51.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jun 2014 14:51:24 -0700 (PDT) From: Emil Goode To: Jean-Christophe Plagniol-Villard , Tomi Valkeinen , Jingoo Han , H Hartley Sweeten Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Emil Goode Subject: [PATCH] video: Remove kfree call since devm_kzalloc() is used Date: Fri, 20 Jun 2014 23:50:37 +0200 Message-Id: <1403301037-10699-1-git-send-email-emilgoode@gmail.com> X-Mailer: git-send-email 1.7.10.4 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 We use devm_kzalloc() to allocate memory for the struct vt8500lcd_info pointer fbi, so there is no need to free it in vt8500lcd_remove(). Signed-off-by: Emil Goode --- drivers/video/fbdev/vt8500lcdfb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index a8f2b28..a1134c3 100644 --- a/drivers/video/fbdev/vt8500lcdfb.c +++ b/drivers/video/fbdev/vt8500lcdfb.c @@ -474,8 +474,6 @@ static int vt8500lcd_remove(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); release_mem_region(res->start, resource_size(res)); - kfree(fbi); - return 0; }