From patchwork Tue Jan 5 19:17:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 71100 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o05JIo9j004728 for ; Tue, 5 Jan 2010 19:18:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754488Ab0AETSt (ORCPT ); Tue, 5 Jan 2010 14:18:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754370Ab0AETSt (ORCPT ); Tue, 5 Jan 2010 14:18:49 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:44615 "EHLO mail-fx0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753363Ab0AETSs convert rfc822-to-8bit (ORCPT ); Tue, 5 Jan 2010 14:18:48 -0500 Received: by fxm25 with SMTP id 25so10105411fxm.21 for ; Tue, 05 Jan 2010 11:18:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:cc:mime-version:content-type:content-transfer-encoding :message-id; bh=pZ3ZLN8NtDtQg08QOKe25uH1ztsdaSEO2ZKrsz+bjHo=; b=hHgHfy5hcGLOeqWQZSp9g8XOH2jGNMvmAGZYLlLYKohcyfiXV0PCOaXF+R3Ri1SSU3 0lKmDsslroXfRw2zMPG0cmdikwV06vhw23+nDvmZxFVjvsDMTLTEHfqTQyScu/RJ6Pk2 BIbK2aWeg3Zl0PHr4WEvBt3z9JnENYVO+XtjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:mime-version:content-type :content-transfer-encoding:message-id; b=xRnXgTCc6HDM0VeTFz1JEtQ0Jf+wfjlP4YmPGOqD/e9H+zc5A+Eri+Tw2zJCTlFMDL ic10/ImirrHUcS8BQoALFOx0ernOr0GZxBYosipNVcqBJMGUSuIT+dZ8bz6I6VU7VPV4 OmNfRuVVtY7JuzwQDPVjSoJlcMebOIzsTtC9Q= Received: by 10.216.87.67 with SMTP id x45mr465906wee.18.1262719126934; Tue, 05 Jan 2010 11:18:46 -0800 (PST) Received: from szaki.localnet (chello089079027028.chello.pl [89.79.27.28]) by mx.google.com with ESMTPS id t2sm52004225gve.24.2010.01.05.11.18.45 (version=SSLv3 cipher=RC4-MD5); Tue, 05 Jan 2010 11:18:45 -0800 (PST) From: Bartlomiej Zolnierkiewicz To: Len Brown Subject: [PATCH resend] acpi: remove superfluous NULL pointer check from acpi_processor_get_throttling_info() Date: Tue, 5 Jan 2010 20:17:08 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31.8-0.1-desktop; KDE/4.3.1; x86_64; ; ) Cc: linux-acpi@vger.kernel.org, Dan Carpenter , Jonathan Corbet , Eugene Teo , Andrew Morton MIME-Version: 1.0 Message-Id: <201001052017.08647.bzolnier@gmail.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Index: b/drivers/acpi/processor_throttling.c =================================================================== --- a/drivers/acpi/processor_throttling.c +++ b/drivers/acpi/processor_throttling.c @@ -1133,9 +1133,6 @@ int acpi_processor_get_throttling_info(s int result = 0; struct acpi_processor_throttling *pthrottling; - if (!pr) - return -EINVAL; - ACPI_DEBUG_PRINT((ACPI_DB_INFO, "pblk_address[0x%08x] duty_offset[%d] duty_width[%d]\n", pr->throttling.address,