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-next>] [day] [month] [year] [list]
Message-ID: <416584.18514.qm@web59516.mail.ac4.yahoo.com>
Date:	Fri, 18 Jul 2008 13:37:10 -0700 (PDT)
From:	Soumyadip Das Mahapatra <soumya.linux@...oo.com>
To:	linux-kernel@...r.kernel.org
Subject: Surprising Code In sound/core/pcm_native.c In Recent Git Tree

Hello everyone!

When i was reading the code in sound/core/pcm_native.c in
recent git tree, i got stuck in  line no 3258. It is something
like this
snd_assert(substream != NULL, goto out);

That (goto statement) surprised me for a while unless i came to
know snd_assert() is a macro (as expected!). Previous version
too had a return statement in it.

The point is that can we have a nicer code? Because this type
of code is sometimes __CONFUSING__.

Thanks :-)



      

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ