summaryrefslogtreecommitdiffstats
path: root/mm/shuffle.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-08-18 10:56:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-18 13:45:21 +0200
commit95e0d57fd49780db89193bc2df67b9eec640c4be (patch)
tree52532e3edb8bda670103f2f2001f0b76038ad05d /mm/shuffle.c
parentvc_screen: extract vcs_write_buf_noattr (diff)
downloadlinux-95e0d57fd49780db89193bc2df67b9eec640c4be.tar.xz
linux-95e0d57fd49780db89193bc2df67b9eec640c4be.zip
vc_screen: extract vcs_write_buf
This is the counterpart of the previous patch: here, we extract buffer writing with attributes from vcs_write. Now, there is no need for org to be initialized to NULL. The org0 check before update_region() confuses compilers, so check org instead. It provides the same semantics. And it also eliminates the need for initialization of org0. We switch the branches of the attr 'if' too, as the inversion brings only confusion now. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200818085706.12163-8-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/shuffle.c')
0 files changed, 0 insertions, 0 deletions