Jason Gunthorpe 7dba92037b net/rds: Use ERR_PTR for rds_message_alloc_sgs()
Returning the error code via a 'int *ret' when the function returns a
pointer is very un-kernely and causes gcc 10's static analysis to choke:

net/rds/message.c: In function ‘rds_message_map_pages’:
net/rds/message.c:358:10: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  358 |   return ERR_PTR(ret);

Use a typical ERR_PTR return instead.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-04-15 12:33:29 -07:00
..
2019-04-24 12:07:08 -07:00
2019-09-26 08:56:17 +02:00
2016-12-26 21:35:39 -05:00
2016-06-18 21:34:09 -07:00
2018-07-23 21:17:44 -07:00
2011-07-01 16:16:19 -07:00
2018-07-23 21:17:44 -07:00
2019-02-04 14:59:11 -08:00