Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1260071

Re: [PATCH] drivers:staging:gdm72xx Fix increment in a loop

From Greg KH <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] drivers:staging:gdm72xx Fix increment in a loop
Date 2015-11-01 01:00 +0100
Message-ID <qpOdY-QP-5@gated-at.bofh.it> (permalink)
References <qpMvw-8rH-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Oct 31, 2015 at 11:03:00PM +0100, Bogicevic Sasa wrote:
> This fixes increment of pos int to be more readable
> Lines 	qcb->csr[index].srcport_lo = ((buf[pos++]<<8)&0xff00);
> 	qcb->csr[index].srcport_lo += buf[pos++];
> become
> 	qcb->csr[index].srcport_lo = get_unaligned_le16(&buf[pos]);
> 	pos += 2;
> 
> Signed-off-by: Bogicevic Sasa <brutallesale@gmail.com>
> ---
>  drivers/staging/gdm72xx/gdm_qos.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)

I'm totally confused, please resend all of these patches, numbered in
order, so I have a chance to know how to apply them.  Also please always
 cc: the proper mailing lists for staging patches (hint, not lkml).

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] drivers:staging:gdm72xx Fix increment in a loop Bogicevic Sasa <brutallesale@gmail.com> - 2015-10-31 23:10 +0100
  Re: [PATCH] drivers:staging:gdm72xx Fix increment in a loop Greg KH <gregkh@linuxfoundation.org> - 2015-11-01 01:00 +0100

csiph-web