From: Alexander Shiyan <shc_work@mail.ru>
To: barebox@lists.infradead.org
Subject: [PATCH] ARM i.MX: Possible bug fixed due misspelling when copy/paste
Date: Tue, 22 May 2012 22:48:48 +0400 [thread overview]
Message-ID: <1337712528-16387-1-git-send-email-shc_work@mail.ru> (raw)
We must check pointer to function rather than result.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
arch/arm/mach-imx/speed-imx51.c | 4 ++--
arch/arm/mach-imx/speed-imx53.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/mach-imx/speed-imx51.c b/arch/arm/mach-imx/speed-imx51.c
index 84f4892..5a845a6 100644
--- a/arch/arm/mach-imx/speed-imx51.c
+++ b/arch/arm/mach-imx/speed-imx51.c
@@ -98,9 +98,9 @@ static unsigned long get_rate_select(int select,
{
switch (select) {
case 0:
- return get_rate1() ? get_rate1() : 0;
+ return get_rate1 ? get_rate1() : 0;
case 1:
- return get_rate2() ? get_rate2() : 0;
+ return get_rate2 ? get_rate2() : 0;
case 2:
return get_rate3 ? get_rate3() : 0;
case 3:
diff --git a/arch/arm/mach-imx/speed-imx53.c b/arch/arm/mach-imx/speed-imx53.c
index a2385fa..634341e 100644
--- a/arch/arm/mach-imx/speed-imx53.c
+++ b/arch/arm/mach-imx/speed-imx53.c
@@ -103,9 +103,9 @@ static unsigned long get_rate_select(int select,
{
switch (select) {
case 0:
- return get_rate1() ? get_rate1() : 0;
+ return get_rate1 ? get_rate1() : 0;
case 1:
- return get_rate2() ? get_rate2() : 0;
+ return get_rate2 ? get_rate2() : 0;
case 2:
return get_rate3 ? get_rate3() : 0;
case 3:
--
1.7.3.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2012-05-22 18:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 18:48 Alexander Shiyan [this message]
2012-05-29 9:09 ` Sascha Hauer
2012-05-30 8:53 ` Re[2]: " Alexander Shiyan
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=1337712528-16387-1-git-send-email-shc_work@mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox