frameworks/rs: fix clang-analyzer-unix.MallocSizeof warnings.
frameworks/rs/cpp/Element.cpp:189:52: warning: Result of 'calloc' is converted to a pointer of type 'android::RSC::sp<const Element>', which is incompatible with sizeof operand type 'android::RSC::sp<Element>'
frameworks/rs/cpp/Element.cpp:414:52: warning: Result of 'calloc' is converted to a pointer of type 'android::RSC::sp<const Element>', which is incompatible with sizeof operand type 'android::RSC::sp<Element>'
frameworks/rs/cpp/Element.cpp:455:92: warning: Result of 'calloc' is converted to a pointer of type 'android::RSC::sp<const Element>', which is incompatible with sizeof operand type 'android::RSC::sp<Element>'
Bug: 26936282
Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mm
Change-Id: I9a8af303fcf2eb8effa42eb538381cd2c24f2001
1 file changed