Re: [PATCH v2] use cpu_to_le{16,32} instead of __constant_cpu_to_*
From: Joe Perches
Date: Wed Sep 02 2020 - 21:59:04 EST
On Wed, 2020-09-02 at 23:29 +0200, Rene Rebe wrote:
> As per recommendation, convert a few remaining __constant_cpu_to_le{16,32}
> instances in the qla2xxx, qla4xxx and cifs to just cpu_to_le{16,32}.
[]
> diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c
[]
> @@ -3583,7 +3583,7 @@ static int __qlt_send_term_imm_notif(struct scsi_qla_host *vha,
>
> /* terminate */
> nack->u.isp24.flags |=
> - __constant_cpu_to_le16(NOTIFY_ACK_FLAGS_TERMINATE);
> + cpu_to_le16(NOTIFY_ACK_FLAGS_TERMINATE);
trivia: this now fits on a single line.