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


Groups > linux.kernel > #1251815 > unrolled thread

RE: [PATCH] intel: i40e: fix confused code

Started by"Nelson, Shannon" <shannon.nelson@intel.com>
First post2015-10-20 17:40 +0200
Last post2015-10-20 17:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: [PATCH] intel: i40e: fix confused code "Nelson, Shannon" <shannon.nelson@intel.com> - 2015-10-20 17:40 +0200

#1251815 — RE: [PATCH] intel: i40e: fix confused code

From"Nelson, Shannon" <shannon.nelson@intel.com>
Date2015-10-20 17:40 +0200
SubjectRE: [PATCH] intel: i40e: fix confused code
Message-ID<qlHb5-7U3-35@gated-at.bofh.it>
> -----Original Message-----
> From: Rasmus Villemoes [mailto:linux@rasmusvillemoes.dk]
> Sent: Saturday, October 17, 2015 1:58 PM
> Subject: [PATCH] intel: i40e: fix confused code
> 
> This code is pretty confused. The variable name 'bytes_not_copied'
> clearly indicates that the programmer knew the semantics of
> copy_{to,from}_user, but then the return value is checked for being
> negative and used as a -Exxx return value.
> 
> I'm not sure this is the proper fix, but at least we get rid of the
> dead code which pretended to check for access faults.
> 
> Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
> ---

Acked-by: Shannon Nelson <shannon.nelson@intel.com>


--
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/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web