Re: [PATCH 3/3] tty: Mark goldfish_tty_line_count as const

From: Greg KH
Date: Sat Jul 21 2018 - 03:46:16 EST


On Tue, Jul 17, 2018 at 05:14:55PM -0700, rkir@xxxxxxxxxx wrote:
> From: Roman Kiryanov <rkir@xxxxxxxxxx>
>
> The driver never mutates this variable - no benefits of
> keeping it mutable.

Then why not just make it a #define? No need to waste the memory of a
variable, right?

thanks,

greg k-h