]> git.karo-electronics.de Git - linux-beck.git/commit
staging/rdma/hfi1: Use pointer instead of struct name
authorJubin John <jubin.john@intel.com>
Mon, 15 Feb 2016 04:21:16 +0000 (20:21 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:45:40 +0000 (20:45 -0500)
commitfcdd76df519e7be5e1094a4bf995374398c44efc
treec85026f9ab6eec8794529ebc6b09cc4cbca0b0a3
parent3db68f4672be95d6f8b0482f1e14c4257b1ee45e
staging/rdma/hfi1: Use pointer instead of struct name

Use sizeof(*p) instead of sizeof(struct foo) to fix checkpatch check:
CHECK: Prefer alloc(sizeof(*p)...) over alloc(sizeof(struct foo)...)

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/pio.c