Re: [PATCH] via-camera: fix OLPC serial port check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28 October 2010 20:08, Jonathan Corbet <corbet@xxxxxxx> wrote:
> This makes every user carry a bit of OLPC-specific code.  But there are
> no non-OLPC users currently, the code is small, and we get rid of some
> #ifdefs, which is always a good thing.  Seems good to me.

I think the compiler might be smart enough to optimize it out.
When CONFIG_OLPC=n, machine_is_olpc() compiles down to a simple "no".
Hopefully that then makes all of that code candidate for dead code
elimination by the compiler.

Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux