From: Greg KH <gregkh@linuxfoundation.org>
To: Vatika Harlalka <vatikaharlalka@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: rtl8188eu: Replace ternary operator with predefined macro
Date: Thu, 26 Feb 2015 12:54:51 -0800 [thread overview]
Message-ID: <20150226205451.GA2571@kroah.com> (raw)
In-Reply-To: <20150223162709.GA16766@gmail.com>
On Mon, Feb 23, 2015 at 09:57:09PM +0530, Vatika Harlalka wrote:
> Replace use of ternary operator with abs() macro to increase
> code readability.
>
> Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
> ---
> drivers/staging/rtl8188eu/hal/phy.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/rtl8188eu/hal/phy.c
> index e7ede44..115d611 100644
> --- a/drivers/staging/rtl8188eu/hal/phy.c
> +++ b/drivers/staging/rtl8188eu/hal/phy.c
> @@ -554,9 +554,7 @@ void rtl88eu_dm_txpower_tracking_callback_thermalmeter(struct adapter *adapt)
> thermal_val = (u8)(thermal_avg / thermal_avg_count);
>
> if (dm_odm->RFCalibrateInfo.bReloadtxpowerindex) {
> - delta = thermal_val > hal_data->EEPROMThermalMeter ?
> - (thermal_val - hal_data->EEPROMThermalMeter) :
> - (hal_data->EEPROMThermalMeter - thermal_val);
> + delta = abs(thermal_val - hal_data->EEPROMThermalMeter);
> dm_odm->RFCalibrateInfo.bReloadtxpowerindex = false;
> dm_odm->RFCalibrateInfo.bDoneTxpower = false;
> } else if (dm_odm->RFCalibrateInfo.bDoneTxpower) {
With the other changes you have made in this file, this patch no longer
applies :(
Can you please refresh your tree against my staging-testing branch and
respin this patch and resend it?
thanks,
greg k-h
prev parent reply other threads:[~2015-02-26 20:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 16:27 [PATCH] Staging: rtl8188eu: Replace ternary operator with predefined macro Vatika Harlalka
2015-02-23 17:12 ` [Outreachy kernel] " Julia Lawall
2015-02-26 20:54 ` Greg KH [this message]
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=20150226205451.GA2571@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=outreachy-kernel@googlegroups.com \
--cc=vatikaharlalka@gmail.com \
/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.