From: Peter Hurley Date: Sat, 15 Jun 2013 13:36:07 +0000 (-0400) Subject: tty: Simplify flip buffer list with 0-sized sentinel X-Git-Tag: v3.12-rc1~182^2~191 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7391ee16950e772076d321792d9fbf030f921345;p=pandora-kernel.git tty: Simplify flip buffer list with 0-sized sentinel Use a 0-sized sentinel to avoid assigning the head ptr from the driver side thread. This also eliminates testing head/tail for NULL. When the sentinel is first 'consumed' by the buffer work (or by tty_buffer_flush()), it is detached from the list but not freed nor added to the free list. Both buffer work and tty_buffer_flush() continue to preserve at least 1 flip buffer to which head & tail is pointed. Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed