linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MPILIB: Fix obvious but harmless typo
@ 2015-01-09 11:10 Rasmus Villemoes
  2015-01-09 13:41 ` David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: Rasmus Villemoes @ 2015-01-09 11:10 UTC (permalink / raw)
  To: David Howells
  Cc: Rusty Russell, d.kasatkin, keyrings, Rasmus Villemoes, linux-kernel

The macro MPN_COPY_INCR this occurs in isn't used anywhere.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
---
Another small thing I stumbled on.

 lib/mpi/mpi-internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/mpi/mpi-internal.h b/lib/mpi/mpi-internal.h
index 60cf765628e9..c65dd1bff45a 100644
--- a/lib/mpi/mpi-internal.h
+++ b/lib/mpi/mpi-internal.h
@@ -84,7 +84,7 @@ static inline int RESIZE_IF_NEEDED(MPI a, unsigned b)
 	do {					\
 		mpi_size_t _i;			\
 		for (_i = 0; _i < (n); _i++)	\
-			(d)[_i] = (d)[_i];	\
+			(d)[_i] = (s)[_i];	\
 	} while (0)
 
 #define MPN_COPY_DECR(d, s, n) \
-- 
2.1.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MPILIB: Fix obvious but harmless typo
  2015-01-09 11:10 [PATCH] MPILIB: Fix obvious but harmless typo Rasmus Villemoes
@ 2015-01-09 13:41 ` David Howells
  0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2015-01-09 13:41 UTC (permalink / raw)
  To: Rasmus Villemoes
  Cc: dhowells, Rusty Russell, d.kasatkin, keyrings, linux-kernel

Rasmus Villemoes <linux@rasmusvillemoes.dk> wrote:

> The macro MPN_COPY_INCR this occurs in isn't used anywhere.

Applied.

David

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-09 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 11:10 [PATCH] MPILIB: Fix obvious but harmless typo Rasmus Villemoes
2015-01-09 13:41 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).