Out of the two checks in this line that were removed incommit d0b43050, one should have remained. We still need to makestoring the old keyboard brightness conditional on an opened lid,otherwise restoring keyboard brightness can fail after closing andre-opening the lid.
BUG: 482306FIXED-IN: 6.0.4