lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 03 Jun 2015 19:44:18 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	dmalcolm@...hat.com
Cc:	grundler@...isc-linux.org, netdev@...r.kernel.org
Subject: Re: [PATCH] drivers/net/ethernet/dec/tulip/uli526x.c: fix
 misleading indentation in uli526x_timer

From: David Malcolm <dmalcolm@...hat.com>
Date: Tue,  2 Jun 2015 15:31:17 -0400

> This code in drivers/net/ethernet/dec/tulip/uli526x.c
> function "uli526x_timer":
> 
>   1086          } else
>   1087                  if ((tmp_cr12 & 0x3) && db->link_failed) {
>   [...snip...]
>   1109                  }
>   1110                  else if(!(tmp_cr12 & 0x3) && db->link_failed)
>   1111                  {
>   [...snip...]
>   1117                  }
>   1118                  db->init=0;
> 
> is misleadingly indented: the
>   db->init=0
> is indented as if part of the else clause at line 1086, but it is
> independent of it (no braces before the "if" at line 1087).
> 
> This patch fixes the indentation to reflect the actual meaning of the code,
> though is it actually meant to be part of the "else" clause?  (I'm a
> compiler developer, not a kernel person).  It also adds spaces around
> the assignment, to placate checkpatch.pl.

I think the code is arranged as intended and the indentation is just wrong.

Patch applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ