From: Ralf Baechle <ralf@linux-mips.org>
To: "Robert P. J. Day" <rpjday@mindspring.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
dhowells@redhat.com, sfr@canb.auug.org.au
Subject: Re: {Spam?} [PATCH] Remove all traces of legacy power management.
Date: Sat, 14 Apr 2007 20:04:51 +0200 [thread overview]
Message-ID: <20070414180451.GA4525@linux-mips.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0704141125410.15722@localhost.localdomain>
On Sat, Apr 14, 2007 at 12:49:54PM -0400, Robert P. J. Day wrote:
> Date: Sat, 14 Apr 2007 12:49:54 -0400 (EDT)
> From: "Robert P. J. Day" <rpjday@mindspring.com>
> To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
> cc: dhowells@redhat.com, Ralf Baechle <ralf@linux-mips.org>,
> sfr@canb.auug.org.au
> Subject: {Spam?} [PATCH] Remove all traces of legacy power management.
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>
> Remove everything related to legacy power management.
>
> Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
> diff --git a/arch/mips/au1000/common/power.c b/arch/mips/au1000/common/power.c
> index 3901e8e..f3685d6 100644
> --- a/arch/mips/au1000/common/power.c
> +++ b/arch/mips/au1000/common/power.c
> @@ -278,13 +278,11 @@ static int pm_do_sleep(ctl_table * ctl, int write, struct file *file,
> p = buf;
> sleep_ticks = simple_strtoul(p, &p, 0);
> #endif
> - retval = pm_send_all(PM_SUSPEND, (void *) 2);
>
> if (retval)
> return retval;
>
> au_sleep();
> - retval = pm_send_all(PM_RESUME, (void *) 0);
> }
> return retval;
> }
> @@ -297,12 +295,10 @@ static int pm_do_suspend(ctl_table * ctl, int write, struct file *file,
> if (!write) {
> *len = 0;
> } else {
> - retval = pm_send_all(PM_SUSPEND, (void *) 2);
> if (retval)
> return retval;
> suspend_mode = 1;
>
> - retval = pm_send_all(PM_RESUME, (void *) 0);
> }
> return retval;
> }
Both segments leave the variable retval as zero initialized and only used
for the return value ... I'm not sure what these functions actually
should do - but after your patches they have essentially become glorified
nops.
Ralf
next prev parent reply other threads:[~2007-04-14 17:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-14 16:49 {Spam?} [PATCH] Remove all traces of legacy power management Robert P. J. Day
2007-04-14 18:04 ` Ralf Baechle [this message]
2007-04-14 17:33 ` {Spam?} " Robert P. J. Day
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070414180451.GA4525@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rpjday@mindspring.com \
--cc=sfr@canb.auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.