Re: [PATCH] [SCSI] zfcp: Remove redundant unlikely()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 09, 2010 at 03:57:43PM +0100, Tobias Klauser wrote:
> IS_ERR() already implies unlikely(), so it can be omitted here.
> 
> Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx>
> ---
>  drivers/s390/scsi/zfcp_fsf.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/s390/scsi/zfcp_fsf.c b/drivers/s390/scsi/zfcp_fsf.c
> index 2eb7dd5..722cdf5 100644
> --- a/drivers/s390/scsi/zfcp_fsf.c
> +++ b/drivers/s390/scsi/zfcp_fsf.c
> @@ -1553,7 +1553,7 @@ int zfcp_fsf_open_wka_port(struct zfcp_fc_wka_port *wka_port)
>  				  SBAL_FLAGS0_TYPE_READ,
>  				  qdio->adapter->pool.erp_req);
> 
> -	if (unlikely(IS_ERR(req))) {
> +	if (IS_ERR(req)) {
>  		retval = PTR_ERR(req);
>  		goto out;
>  	}
> @@ -1606,7 +1606,7 @@ int zfcp_fsf_close_wka_port(struct zfcp_fc_wka_port *wka_port)
>  				  SBAL_FLAGS0_TYPE_READ,
>  				  qdio->adapter->pool.erp_req);
> 
> -	if (unlikely(IS_ERR(req))) {
> +	if (IS_ERR(req)) {
>  		retval = PTR_ERR(req);
>  		goto out;
>  	}
> -- 

Thanks for catching this. I will add the patch to our patch queue.

Christof
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux